-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Check for latest commit before install.sh #1186
Conversation
Current state has problems when running on tags... |
991d2c9
to
a569bad
Compare
a569bad
to
b4db562
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.
Quite sure this would break all the releases. This should be limited to nightly builds only and since we don't promote using those anymore, I'd say fixing #925 is more hassle than it is worth.
This also assumes the repo is run from a |
This checks if
Thanks! Fixed by bcf256e. |
Ah, sorry I missed that logic. Doing another review now. |
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.
Requesting change for comments and a bypass logic, otherwise seems good.
There's also a failure in integration tests but don't know if this is relevant or not.
install.sh
Outdated
if [[ $(git branch | sed -n '/\* /s///p') == "master" ]]; then | ||
if [[ $(git rev-parse HEAD) != $(git ls-remote $(git rev-parse --abbrev-ref @{u} | sed 's/\// /g') | cut -f1) ]]; then |
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.
Some comments here explaining the logic would be very beneficial.
I also think we should have a flag (CLI or env variable) to bypass this logic as I can easily see this becoming a nuisance for people maintaining their custom versions.
👍
I think it's related to #1171 |
I don't like |
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.
Can we fold into the existing structure?
- command line switch goes in
parse-cli.sh
- new file called
install/check-latest-commit.sh
or somesuch
Wdyt?
Maybe |
Nice idea. |
Fixes #925
However this would prevent from running in isolated (without Internet) environments.
Credit: https://stackoverflow.com/a/25109122/3835210