-
Notifications
You must be signed in to change notification settings - Fork 45
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
packer 1.7 requires a sha256 checksum #53
Conversation
``` could not get sha256 checksum file for github.com/caulagi/goss version 3.0.3. Is the file present on the release and correctly named ? GET https://github.com/caulagi/packer-plugin-goss/releases/download/v3.0.3/packer-plugin-goss_v3.0.3_SHA256SUMS: 404 [] ``` Also, packer init expects a sha256 checksum file of form *goss_v3.0.5_SHA256SUMS. So I changed the workflow to match what is used in packer-plugin-scaffolding Signed-off-by: Pradip Caulagi <caulagi@gmail.com>
Signed-off-by: Pradip Caulagi <caulagi@gmail.com>
Signed-off-by: Pradip Caulagi <caulagi@gmail.com>
The release looks like this - https://github.com/caulagi/packer-plugin-goss/releases/tag/v3.0.4. But I had to update packer-plugin-sdk to use version 0.1.0 and go to 1.16. |
@caulagi thanks for this - my only concern is it changes the name format of the release binaries and the archive format. Although this output might be more correct, we have some projects leveraging these releases through automation. @EleanorRigby @jsturtevant what do you think about standardizing on zip and separating the version/arch with underscores? Can you make sure these changes work for your use case? |
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.
Just a couple comments on the review, I want to let some users weigh in as well. Are you saying this will fail to build in the current state of our repo because the SDK needs updating?
.github/workflows/main.yml
Outdated
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
goos: ${{ matrix.goos }} | ||
goarch: ${{ matrix.goarch }} | ||
go-version: 1.15 |
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.
I thought this required go 1.16?
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.
Hi - I skipped using 1.16 here because go.mod still uses 1.15 and I see you have a PR for changing this in go.mod
. I can change if #54 gets merged first.
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.
Sounds good
We have tooling that uses Is there a reason to move to zip? cc: @codenrhoden |
thanks @jsturtevant It seems like goreleaser defaults to https://goreleaser.com/customization/archive/
|
@caulagi any thoughts on switching to the default tar.gz for this PR? |
@fishnix I need to test this some more, but I don't think |
I get an error like below with packer 1.7.2 ``` could not get sha256 checksum file for github.com/caulagi/goss version 3.0.3. Is the file present on the release and correctly named ? GET https://github.com/caulagi/packer-plugin-goss/releases/download/v3.0.3/packer-plugin-goss_v3.0.3_SHA256SUMS: 404 [] ``` Also, `packer init` expects a sha256 checksum file of form *goss_v3.0.5_SHA256SUMS. So I changed the workflow to match what is used in `packer-plugin-scaffolding` Signed-off-by: Pradip Caulagi <caulagi@gmail.com>
Signed-off-by: Pradip Caulagi <caulagi@gmail.com>
I am still working on it. It seems like I need to update the code a bit to use
|
@caulagi I opened PR #57 to cover the stuff we have here but also keep the existing archive format. I thought it might help to break down the effort. If you want to take a stab at the next thing we need to do for compatibility, I'd be happy to see another PR from you! In the meantime, I'm closing this one in favor of #57 . Thanks again! |
I get an error like below with packer 1.7.2
Also,
packer init
expects a sha256 checksum file of form *goss_v3.0.5_SHA256SUMS. So I changed the workflow to match what is used inpacker-plugin-scaffolding