Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: WillBrock/packer

Tags

nightly

Toggle nightly's commit message
hcp: don't continue if HEAD doesn't exist

In HCP's metadata package, especially the VCS/git parts, we keep the
current HEAD for a repository, along with the state it is in, in order
to report it to HCP Packer when the build completes.

However, when a build is run on a template from an empty Git repository,
and HCP Packer is enabled, the code would crash when trying to get the
information on the current HEAD, as it doesn't exist.

The git library we use returns an error in such a case, but this was
ignored, leading to a crash when attempting to get the hash to this
reference later on.

This commit fixes the problem by NOT ignoring the error to get the head,
and immediately stop processing the git data as it doesn't yet exist.

v1.12.0-alpha1

Toggle v1.12.0-alpha1's commit message
version: cut packer 1.12.0-alpha1

v1.11.2

Toggle v1.11.2's commit message
version: cut release 1.11.2

v1.11.1

Toggle v1.11.1's commit message
Cut release 1.11.1

v1.11.0

Toggle v1.11.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request hashicorp#13007 from hashicorp/backport/bump-1.11-…

…release-date/accurately-usable-goose

This pull request was automerged via backport-assistant

v1.11.0-beta

Toggle v1.11.0-beta's commit message
version: tag version as 1.11.0-beta

v1.10.3

Toggle v1.10.3's commit message
Updated CHANGELOG 1.10.3

v1.11.0-alpha2

Toggle v1.11.0-alpha2's commit message
version: bump to v1.11.0-alpha2

v1.11.0-alpha

Toggle v1.11.0-alpha's commit message
Bump github.com/go-jose/go-jose/v3 to address CVE-2024-28180

v1.10.2

Toggle v1.10.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request hashicorp#12868 from hashicorp/backport/deps/googl…

…e.golang.org/protobuf-1.31.0/apparently-knowing-pigeon

This pull request was automerged via backport-assistant