-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make building Scala client work on Github Actions #4198
Make building Scala client work on Github Actions #4198
Conversation
@@ -19,6 +19,7 @@ RUN set -ex && \ | |||
apt-get clean && \ | |||
rm -rf scala-${SCALA_VERSION}.deb sbt-${SBT_VERSION}.tgz /var/lib/apt/lists/* | |||
|
|||
ENV PATH="/sbt/bin:$PATH" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Dockerfile installs sbt to this location, so it should deal with setting PATH, not the build script.
@@ -32,5 +32,6 @@ func BuildScala() error { | |||
"--rm", | |||
"-v", fmt.Sprintf("%s:/build", wd), | |||
"-w", "/build", | |||
"--env", "HOME=/tmp", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running as part of the Github Actions CI, default HOME
will point to a location (/
) where the user (probably the test runner user) running the build script does not have write permissions. This home works for any user running the script in the Docker container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏼
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
dbb921c
to
0b96edb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What type of PR is this?
Fixing CI.
What this PR does / why we need it:
Fixes running
mage buildScala
on Github Actions as part of CI.Which issue(s) this PR fixes:
Minor fix.