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

Install the Score implementation (CLI) - dirt version via go #61

Open
mohsenSy opened this issue Oct 8, 2023 · 1 comment
Open

Install the Score implementation (CLI) - dirt version via go #61

mohsenSy opened this issue Oct 8, 2023 · 1 comment
Assignees

Comments

@mohsenSy
Copy link

mohsenSy commented Oct 8, 2023

Hi, I am trying to install score-humanitec CLI via go using this command

go install -v github.com/score-spec/score-humanitec/cmd/score-humanitec@latest

If I check the version installed after this command using score-humanitec --version I get this

score-humanitec 0.0.0 (build: local; sha: dirty)

However, if I copy download and use the archive file I get the right version. Could you please fix the installation via go so we don't get dirty versions?

The two binary files installed via go install ... and via downloading the archive have two different checksums.

@astromechza
Copy link
Member

This is generally expected behavior when performing a local build of the CLI using the bare go install as there is no way to embed the git commit in the binary.

We could look at using the lesser known go install -buildvcs option in some cases and we could access this build information at runtime.

@astromechza astromechza self-assigned this Feb 20, 2024
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

2 participants