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

fix: install supported Terramate system/arch (excluding windows). #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

i4ki
Copy link

@i4ki i4ki commented Mar 4, 2024

Enables the installation of the supported Terramate Operating System and architectures.
Windows support is still experimental, hence not implemented.

@i4ki i4ki requested a review from mariux March 4, 2024 00:41
@i4ki i4ki changed the title fix: install supported Terramate system/arch. fix: install supported Terramate system/arch (excluding windows). Mar 4, 2024
@i4ki i4ki force-pushed the i4k-fix-macos branch 3 times, most recently from 5a0d9c6 to 8caae18 Compare March 4, 2024 01:19
sixstone-qq
sixstone-qq previously approved these changes Mar 4, 2024
Copy link

@sixstone-qq sixstone-qq left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -18,7 +18,7 @@ get_latest_version() {
echo >&2 "latest version: Getting latest Terramate release information from GitHub Releases"

latest_url="https://api.github.com/repos/terramate-io/terramate/releases/latest"
latest_json=$(curl -s "${latest_url}")
latest_json=$(curl -s -H "Authorization: Bearer ${GITHUB_TOKEN}" "${latest_url}")

Choose a reason for hiding this comment

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

/home/runner/_work/_actions/terramate-io/terramate-action/i4k-fix-macos/install.sh: line 21: GITHUB_TOKEN: unbound variable I got this error when running this line @i4ki
20232

Copy link
Author

Choose a reason for hiding this comment

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

Ah okay, this needs a fallback to be unauthenticated if the env is not set.
But the install requires fetching the latest Terramate release from Github API, so if unauthenticated you can get some rate limiting errors in your pipeline. Quick fix now is just pass the GITHUB_TOKEN to the action.

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.

3 participants