Skip to content
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

[sc-39654] Add ghciwatch #10

Merged
merged 2 commits into from
Oct 31, 2024
Merged

[sc-39654] Add ghciwatch #10

merged 2 commits into from
Oct 31, 2024

Conversation

ysangkok
Copy link

Tested locally. I moved down the ADD such that it becomes easier to debug. When the ADD is at the top, you have to reinstall GHC and HLS every time you make a change to install-tools.sh.

Dockerfile Outdated
RUN /bin/sh /install-tools.sh

ADD install-tools.sh /install-tools.sh
RUN bash /install-tools.sh
Copy link

@telser telser Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't use bash. We don't need it for the tests in the install-tools.sh anyway

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 66763f3

install-tools.sh Outdated
@@ -1,5 +1,16 @@
set -o errexit

arch=$(uname -m)
if [[ $arch == x86_64 ]]; then
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be able to do this with a normal call to test in bourne shell. ShellCheck is a big help for this kind of thing.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 66763f3

@ysangkok ysangkok merged commit 66763f3 into main Oct 31, 2024
3 checks passed
@ysangkok ysangkok deleted the sc-39654/ghciwatch branch October 31, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants