Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Nov 12, 2019

backport of #8528
fixes scala/scala-dev#659


Currently SDKMAN blocks for prompt when there's a new version of SDKMAN.

$ sdk list java
...
ATTENTION: A new version of SDKMAN is available...

The current version is 5.7.4+362, but you have 5.7.3+337.

Would you like to upgrade now? (Y/n):

This in turn blocks our automated AdoptOpenJDK installation script:

sdk install java $(sdk list java | grep -o "$ADOPTOPENJDK\.[0-9\.]*hs-adpt" | head -1)

An additional setting sdkman_auto_selfupdate=true is needed so it's updated automatically.

This also adds | true to sdk install because it started to return 1 if the same Jave version is already installed.

(cherry picked from commit 43b11a3)

Currently SDKMAN blocks for prompt when there's a new version of SDKMAN.

```
$ sdk list java
...
ATTENTION: A new version of SDKMAN is available...

The current version is 5.7.4+362, but you have 5.7.3+337.

Would you like to upgrade now? (Y/n):
```

This in turn blocks our automated AdoptOpenJDK installation script:

```
sdk install java $(sdk list java | grep -o "$ADOPTOPENJDK\.[0-9\.]*hs-adpt" | head -1)
```

An additional setting `sdkman_auto_selfupdate=true` is needed so it's updated automatically.

This also adds `| true` to `sdk install` because it started to return 1 if the same Jave version is already installed.

(cherry picked from commit 43b11a3)
@scala-jenkins scala-jenkins added this to the 2.12.11 milestone Nov 12, 2019
@dwijnand
Copy link
Member Author

[error] (interactive/compile:compileIncremental) Could not create directory /home/jenkins/workspace/scala-2.12.x-validate-main/target/scala-2.12/classes.bak

@SethTisue
Copy link
Member

/rebuild

@SethTisue SethTisue self-assigned this Nov 12, 2019
@SethTisue
Copy link
Member

[error] (interactive/compile:compileIncremental) Could not create directory /home/jenkins/workspace/scala-2.12.x-validate-main/target/scala-2.12/classes.bak

went away on /rebuild

@retronym but should #7365 get a 2.12.x backport?

@SethTisue SethTisue added the internal not resulting in user-visible changes (build changes, tests, internal cleanups) label Nov 12, 2019
@SethTisue SethTisue merged commit be7fd51 into scala:2.12.x Nov 12, 2019
@dwijnand dwijnand deleted the 2.12/fix-sdkman branch November 12, 2019 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal not resulting in user-visible changes (build changes, tests, internal cleanups)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants