Commit graph

156 commits

Author SHA1 Message Date
Lucas Bajolet
361a432eac version: bump main to 1.12.0-dev
Since we released 1.11.0 today, we need to have main point to the next
minor release of Packer so CI succeeds, otherwise we get an unexpected
output for the version being out-of-date.
2024-05-31 15:17:52 -04:00
Lucas Bajolet
410e59f141 version: compute SemVer from rawVersion
A bug in the SDK prevents us from calling SemVer on the PluginVersion
derived from the rawVersion, as when doing so, we reset the semVer
attribute to only use the core part of the version, thereby dropping any
information on pre-release/metadata.

This is not ideal, and arguably not wanted. So in order to not lose this
information, we re-compute the SemVer from rawVersion, this way we don't
overwrite it for both structures.
2024-04-23 11:10:43 -04:00
Lucas Bajolet
cdaad0cde2 version: up version handling code for SDK update
Since the SDK was updated and now accepts raw version strings in
addition to also supporting metadata officially, we can start using
those functions in our version package as well.
2024-04-16 14:27:05 -04:00
Lucas Bajolet
f05124e2a4 version: set version to 1.11.0-dev
Since we set the raw version string from version/VERSION now, we change
its information to point to 1.11.0-dev until we're ready to release.
2024-04-16 10:19:17 -04:00
Lucas Bajolet
93bec31ec9 version: embed version/VERSION as version string
Since we have both version/version.go and version/VERSION to specify
version strings, both are a bit redundant.

As version/VERSION is supposed to be the source of truth now, we are
using it to derive the version informaiton we used to rely on in Packer
and its subcommands.

Note: doing this prevents us from changing the version/prerelease
through ldflags though as we derive Version/VersionPrerelease from the
rawVersion variable.
2024-04-16 10:19:17 -04:00
Wilken Rivera
c138ce533e Revert "Bumped product version to 1.12.0."
This reverts commit cc22e282ac.
The action successfully works now for the future release branch.
2023-11-10 16:32:19 -05:00
hc-github-team-packer
cc22e282ac Bumped product version to 1.12.0. 2023-11-10 16:29:36 -05:00
Wilken Rivera
a118b5489e Bumped product version to 1.11.0 2023-11-10 11:42:44 -05:00
Wilken Rivera
ebc1317307 Bumped product version to 1.11.0. 2023-11-10 11:39:23 -05:00
hashicorp-copywrite[bot]
19055df3ec
[COMPLIANCE] License changes (#12568)
* Updating the license from MPL to Business Source License

Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at https://hashi.co/bsl-blog, FAQ at https://hashi.co/license-faq, and details of the license at www.hashicorp.com/bsl.

* Update copyright file headers to BUSL-1.1

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-08-10 15:53:29 -07:00
Lucas Bajolet
ac29a1366b version: prepare for 1.10.0 releases 2023-05-31 11:50:56 -04:00
hashicorp-copywrite[bot]
b7df3ca36f
[COMPLIANCE] Add Copyright and License Headers (#12254)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-03-02 15:37:05 -05:00
Wilken Rivera
b986a7c948 Bump development version to 1.9.0
Stable releases for 1.8.x will be made off of the release/1.8.x branch.
Main will represent the next minor version. When ready for a release a new release branch will
be created for the version.
2023-02-08 11:17:54 -05:00
claire labry
0d94e7d753
Introduce action-set-product-version for Packer (#12135)
This change introduces the new actions-set-product-version, a tiny, but mighty, GitHub action that acts as a bridge between the product repo and our new CRT feature: automated version bumping.

tl;dr automated version bumping has a new command (bob update version) in the bob CLI that automatically bumps the version to a new patch. This automation has been introduced to crt-workflows-common as a new workflow (with the new bob command) and handles version bumping at the end of the release pipeline (after being released to production); for example, 1.0.0→1.0.1 and 1.0.0-dev→1.0.0. Bumping the minor version (ie 1.0.x→1.1.0) is only supported manually via bob update version -bump minor, but not supported in CRT (this work is upcoming). This is made possible by adding the new event “bump-version” in the ci.hcl file in this PR.

What this small action does:

    Allows for the static version string from the version/VERSION file to be read by the new CRT workflow and automagically be bumped to the next version (whether it be a minor, or patch, or major version bump).
    Outputs an error if there’s no VERSION file in the version dir
    Outputs an error if there’s no version string in the VERSION file
    Is able to parse product_version if it is 1.3.0-alpha1 as 1.3.0 (example: when product_version = 1.3.0-alpha1, base_version = 1.3.0)
    Is able to parse prerelease product versions such as alpha1 (example prerelease_product_version = alpha1) in the statement above.
2023-01-19 14:02:09 -05:00
Wilken Rivera
82bcc9e671 Reset to dev mode 2022-12-13 14:29:25 -05:00
Wilken Rivera
e4f31384a3 Cut release 1.8.5 2022-12-12 16:40:41 -05:00
Lucas Bajolet
83ca7c203c prepare 1.8.5 2022-10-28 12:13:31 -04:00
Lucas Bajolet
83cc093d50 cut release 1.8.4 2022-10-28 10:43:05 -04:00
Wilken Rivera
0c9c3fe48c Put in dev mode 1.8.4 2022-08-02 21:05:48 -04:00
Wilken Rivera
38b47d8211 Cut release 1.8.3
* Fix spacing in CHANGELOG
* Add release date to CHANGELOG
2022-08-02 05:55:28 -04:00
Wilken Rivera
f752f8dd63 Put in dev mode 2022-06-21 17:51:54 -04:00
Wilken Rivera
f0e24a249b Cut release v1.8.2 2022-06-21 13:01:18 -04:00
Wilken Rivera
ecacd59f0f
Put in dev mode 1.8.2 (#11822) 2022-05-30 10:26:36 +02:00
Wilken Rivera
467529f597 Cut release 1.8.1 2022-05-27 13:17:11 -04:00
Wilken Rivera
ec912cae9e Put in dev mode 2022-03-08 19:37:47 -05:00
Wilken Rivera
70806cb27e Bump version for 1.8.0 release 2022-03-03 12:07:10 -05:00
Michele Degges
b63a9c9803
Onboard to CRT (#11564)
Onboard Packer to CRT

Co-authored-by: Wilken Rivera <wilken@hashicorp.com>
Co-authored-by: Claire Labry <claire@hashicorp.com>
2022-02-25 15:56:20 -08:00
packer-ci
f0e7edd62d Putting source back into Dev Mode 2022-02-02 22:42:15 +00:00
packer-ci
661b85e18c cut version 1.7.10 2022-02-02 22:01:36 +00:00
packer-ci
fd487b4d8b Putting source back into Dev Mode 2022-01-19 17:10:10 +00:00
packer-ci
418284afee cut version 1.7.9 2022-01-19 15:50:09 +00:00
packer-ci
9cfe02042b Putting source back into Dev Mode 2021-10-28 13:02:46 +00:00
packer-ci
c261e9d641 cut version 1.7.8 2021-10-27 18:56:52 +00:00
packer-ci
079c0004fd Putting source back into Dev Mode 2021-10-19 15:39:55 +00:00
packer-ci
d0c2326671 cut version 1.7.7 2021-10-19 15:12:25 +00:00
packer-ci
8eac348d97 Putting source back into Dev Mode 2021-09-28 20:27:07 +00:00
packer-ci
55cd239f92 cut version 1.7.6 2021-09-28 19:55:17 +00:00
packer-ci
63865b4fd6 Putting source back into Dev Mode 2021-09-15 01:07:49 +00:00
packer-ci
aec7ec4ea8 cut version 1.7.5 2021-09-14 21:02:50 +00:00
packer-ci
f6e6060921 Putting source back into Dev Mode 2021-07-20 18:19:09 +00:00
packer-ci
024c08b3d3 cut version 1.7.4 2021-07-20 17:06:43 +00:00
packer-ci
0cc423f142 Putting source back into Dev Mode 2021-06-15 22:44:21 +00:00
packer-ci
6208456cef cut version 1.7.3 2021-06-15 22:19:18 +00:00
packer-ci
33461126e2 Putting source back into Dev Mode 2021-04-05 23:32:25 +00:00
packer-ci
4417f8b3bf cut version 1.7.2 2021-04-05 22:55:11 +00:00
packer-ci
3e497e3712 Putting source back into Dev Mode 2021-03-31 17:32:59 +00:00
packer-ci
3a437d4891 cut version 1.7.1 2021-03-31 16:43:45 +00:00
packer-ci
21c6811334 Putting source back into Dev Mode 2021-02-17 16:12:20 +00:00
packer-ci
a939671abb cut version 1.7.0 2021-02-17 11:13:50 +00:00
Megan Marsh
88b7b0e14a remove sdk 2020-12-17 13:29:25 -08:00