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

os_arch values no longer match hugo releases #44

Open
TheTedAdams opened this issue May 1, 2024 · 0 comments
Open

os_arch values no longer match hugo releases #44

TheTedAdams opened this issue May 1, 2024 · 0 comments

Comments

@TheTedAdams
Copy link

https://github.com/stackb/rules_hugo/blob/master/hugo/internal/hugo_repository.bzl#L15-L21

os_arch = repository_ctx.attr.os_arch

os_name = repository_ctx.os.name.lower()
if os_name.startswith("mac os"):
    os_arch = "macOS-64bit"
elif os_name.find("windows") != -1:
    os_arch = "Windows-64bit"
else:
    os_arch = "Linux-64bit"

The os_arch options in hugo_repository() no longer aligns with the ones being used in hugo releases:
image

This means for recent releases I believe only linux is actually working. Supplying os_arch manually also doesn't seem to work, as we are overriding it whether or not it was provided.

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

No branches or pull requests

1 participant