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

upgrade dependencies #32

Closed
wants to merge 123 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
16fb193
Fix goreleaser configuration
Sep 12, 2022
54a995c
[COMPLIANCE] Update MPL 2.0 LICENSE
Oct 12, 2022
33e82fa
update links (#138)
sylviamoss Oct 28, 2022
b493aea
[COMPLIANCE] Add Copyright and License Headers
hashicorp-copywrite[bot] Dec 12, 2022
5012fd5
ssh: fix DownloadDir empty response check (#147)
lbajolet-hashicorp Jan 11, 2023
1f4d6a9
communicator: add note to docs on protocol/Windows
lbajolet-hashicorp Jan 10, 2023
34ed5d9
Fix some linting warnings. (#149)
rossmaclean Jan 13, 2023
4a11ef9
Update links used in embedded documentation partials
Jan 26, 2023
404e1f9
Bump version for next release
Jan 26, 2023
6f32b7f
shell-local: fix supported_os error check
lbajolet-hashicorp Jan 27, 2023
cc05a3a
version: release v0.3.4 of the SDK
lbajolet-hashicorp Jan 27, 2023
fd628a5
Update environment variables URL in error message
Feb 1, 2023
0ab9c86
ssh: add warnings on DSA usage
lbajolet-hashicorp Feb 1, 2023
45e4613
Remove ioutil in favour of io and os packages and exclude crypto/dsa …
rossmaclean Jan 27, 2023
aa0cffe
Add deprecation warning for DSA
rossmaclean Feb 3, 2023
2085e33
Update hashicorp/go-getter pkg to address CVE-2023-0475
Feb 14, 2023
a124fa7
Add go-test action for SDK
Mar 7, 2023
4754c3b
Update working directory for go checks
Mar 7, 2023
dcc669e
Update generated files
Mar 7, 2023
e5ba35c
Remove directory from matrix
Mar 7, 2023
47e77fe
Update go generate with Go 1.18
Mar 7, 2023
e2f3241
Remove Go 1.19 from test matrix
Mar 7, 2023
d160ce0
packer-sdc: return errors on duplicate tag/field
lbajolet-hashicorp Feb 24, 2023
62bcc50
Update golang.org/x/net to address GO-2023-1571
Mar 6, 2023
ac3abdc
Use login user name when available
Mar 7, 2023
a11399a
Remove circle-ci jobs in favor of GHA
Mar 7, 2023
ba0cbeb
Add test to runner for Darwin Os
Mar 7, 2023
75fe363
cut release v0.4.0
Mar 8, 2023
b03e2b6
Update link to latest releases in CHANGELOG
nywilken Apr 10, 2023
e0635ce
workflows: pin external actions
lbajolet-hashicorp Apr 12, 2023
85465e8
workflows/go-test: add permissions to workflow
lbajolet-hashicorp Apr 12, 2023
5249eb0
workflows: add actionlint workflow
lbajolet-hashicorp Apr 12, 2023
9b87bcd
go-test: fix lint/shellcheck quoting issues
lbajolet-hashicorp Apr 12, 2023
10b594a
Result of tsccr-helper -pin-all-workflows .
hashicorp-tsccr[bot] Apr 21, 2023
9a0710c
[COMPLIANCE] Add Copyright and License Headers
hashicorp-copywrite[bot] Apr 17, 2023
e5dc31b
Add basic test for commonServer.ConfigSpec
Apr 21, 2023
21a1e5e
Add recover to fail test on panic
Apr 21, 2023
b08070c
Add recover to fail datasource test on cty panic
Apr 21, 2023
a27f60a
communicator: don't set bastion cert if key is set
lbajolet-hashicorp Apr 19, 2023
cb843aa
Bump Go version to 1.20
Apr 27, 2023
3028bde
Fix formatting generated with 1.20
Apr 27, 2023
097c924
ssh: improve debug logging
lbajolet-hashicorp Apr 28, 2023
8331daf
[COMPLIANCE] Add Copyright and License Headers
hashicorp-copywrite[bot] May 1, 2023
7c81952
Fix menu boot command vnc key stroke (#184)
korli May 25, 2023
0c09c89
Add compile time check for go-cty
Apr 24, 2023
df99313
Move check into rpc/init
nywilken Jun 14, 2023
2853bc0
Replace gitub.com/zclconf/[email protected] with fork github.com/nywilken…
Jun 20, 2023
8c4e43c
Bump github.com/hashicorp/hcl/v2 to v2.16.2
Jun 20, 2023
5e4aae7
Fix buildtags
Jun 20, 2023
af18c71
Reset Go to version 1.18 in module file
nywilken Jun 22, 2023
2a6d852
Remove extra backticks from HTTP server documentation (#191)
edigaryev Jul 6, 2023
7d3a4b2
[HPR-1190] Add `packer-sdc fix` command (#190)
Jul 14, 2023
2b9991b
Fix diff header for fix command
nywilken Jul 18, 2023
f014f4e
Update pinned actions to latest trusted versions
Jul 28, 2023
9115d64
Cut release v0.5.0
Jul 28, 2023
7be7944
github: remove trailing whitespaces
lbajolet-hashicorp Jul 31, 2023
f4e5599
go.mod: remove replace statement for go-cty
lbajolet-hashicorp Jul 31, 2023
1008a3b
cmd: allow packer-sdc fix on the SDK
lbajolet-hashicorp Jul 31, 2023
98985e1
README: add note on local testing
lbajolet-hashicorp Jul 31, 2023
d758176
workflows: add packer-sdc fix to the test workflow
lbajolet-hashicorp Jul 31, 2023
57c8858
workflows: ensure we dont commit replace in go.mod
lbajolet-hashicorp Jul 31, 2023
5c50987
go.mod: separate go-cty out of require block
lbajolet-hashicorp Jul 31, 2023
28a0063
Remove use of Go 1.20 language features
Aug 1, 2023
04cbbf4
Add matrix builds for supported Go versions
Aug 1, 2023
9be5b0f
Bump Go module minimum version to 1.19
Aug 1, 2023
4c19df0
go.mod: retract v0.5.0
lbajolet-hashicorp Aug 1, 2023
b74d508
workflows: improve replace check in go.mod
lbajolet-hashicorp Aug 1, 2023
3a3e3a1
Cut release v0.5.1
Aug 1, 2023
4328d73
Bump go-getter to v2.2.1
zliang-akamai Aug 2, 2023
84dd3ab
acctest: add capability to add args to build
lbajolet-hashicorp Aug 22, 2023
e244605
hcl2helper: preemptively panic on nil hcl spec
lbajolet-hashicorp Aug 25, 2023
69dbb1e
Update gopkg.in/yaml.v3 to address CVE-2022-28948
nywilken Oct 2, 2023
19d1c81
Bump github.com/dylanmei/winrmtest to address CVE-2021-3538
nywilken Oct 2, 2023
10cf15c
Bump golang.org/x/net to address CVE-2023-3978
nywilken Oct 2, 2023
1840b5f
Add 1.21.x to testing matrix
nywilken Oct 2, 2023
7128c8a
Bump Go tool chain to 1.20
nywilken Oct 2, 2023
a68554d
Fix filepath.Clean for file prefixed URLs
Oct 13, 2023
85bbc31
Bump dev version
Oct 17, 2023
a7f1f5c
Bump golang.org/x/tools for Go 1.20 fixes
Oct 17, 2023
6961c20
deps: bump github.com/mitchellh/cli to v1.1.5 for security fix
Oct 18, 2023
9e65ca1
deps: bump github.com/hashicorp/yamux to v0.1.1
Oct 18, 2023
4d8c199
deps: bump github.com/hashicorp/consul/api to v1.25.1 for security fixes
Oct 18, 2023
530fc82
deps: bump github.com/hashicorp/vault/api to 1.10.0 for security fixes
Oct 19, 2023
3327058
depg: bump golang.org/x/net to 0.17.0 for security fixes
Oct 19, 2023
fe7beb7
Bump upstream modules to support latest hcl/v2 offerrings
Oct 26, 2023
c170d73
Update go-cty fixer replace directive to github.com/nywilken/go-cty v…
Oct 26, 2023
4fb8273
Initial fix for underlying struct mis-match bug
Oct 18, 2023
e599745
packer-sdc/struct-markdown: Allow packer-internal as project director…
Nov 13, 2023
eac3a5f
Cut release v0.5.2
Nov 28, 2023
4362ef5
Prepare for v0.5.3 dev
Nov 28, 2023
f9edec7
Bump golang.org/x/crypto to address CVE-2023-48795
Jan 8, 2024
d970fb9
Ui: add format-string alternatives to functions
lbajolet-hashicorp Mar 12, 2024
514ab19
Bump github.com/zclconf/go-cty from 1.10.0 to 1.14.4
dependabot[bot] Mar 21, 2024
97c2819
Bump github.com/hashicorp/hcl/v2 from 2.13.0 to 2.20.1
dependabot[bot] Mar 27, 2024
b33ea9e
version: add testing for version creation
lbajolet-hashicorp Mar 21, 2024
2a28d48
version: introduce metadata to PluginVersion
lbajolet-hashicorp Mar 21, 2024
ddbda65
version: adapt FormatedVersion to use String
lbajolet-hashicorp Mar 21, 2024
92242be
version: limit core version to 3 segments
lbajolet-hashicorp Mar 21, 2024
38ffab0
version: cut release v0.5.3
lbajolet-hashicorp Apr 16, 2024
3b2d07c
version: prepare v0.5.4-dev
lbajolet-hashicorp Apr 16, 2024
57d8d75
Merge pull request #22 from inloco/dependabot/go_modules/github.com/h…
RodrigoCMoraes Apr 19, 2024
d5624d6
Merge branch 'main' into dependabot/go_modules/github.com/zclconf/go-…
RodrigoCMoraes Apr 19, 2024
da515fe
Merge pull request #21 from inloco/dependabot/go_modules/github.com/z…
RodrigoCMoraes Apr 19, 2024
779b8c1
upgrade: fix security issues
RodrigoCMoraes Apr 19, 2024
65072c8
Merge pull request #24 from inloco/upgrade-dependencies
RodrigoCMoraes Apr 19, 2024
6345039
version: don't remake semVer if not nil
lbajolet-hashicorp Apr 16, 2024
a4700a2
[COMPLIANCE] Add Copyright and License Headers
hashicorp-copywrite[bot] Apr 22, 2024
57155da
Merge branch 'main' of github.com:hashicorp/packer-plugin-sdk into se…
RodrigoCMoraes May 3, 2024
bb4ca5b
Bump actions/checkout to address Node.js 16 deprecation issues (#237)
May 7, 2024
11fc3c9
Bump actions/setup-go to address Node.js 16 deprecation issues (#238)
May 7, 2024
61d973c
Bump goreleaser action to address Node.js 16 deprecation issues (#239)
May 7, 2024
11d9aff
Merge branch 'main' of github.com:hashicorp/packer-plugin-sdk into se…
RodrigoCMoraes May 7, 2024
bfa2111
upgrade: grpc to 1.56.3
RodrigoCMoraes May 7, 2024
cb89d15
security: fix security issues
RodrigoCMoraes May 7, 2024
28d5abf
Merge pull request #26 from inloco/security/upgrade-dependencies
RodrigoCMoraes May 7, 2024
ea92fa9
fix: ci macami error
RodrigoCMoraes May 9, 2024
46ffb1f
Merge pull request #29 from inloco/fix/ci-macami-error
RodrigoCMoraes May 9, 2024
6e657c8
fix: missing ci
RodrigoCMoraes May 9, 2024
0873677
ci: remove non-needed validation
RodrigoCMoraes May 9, 2024
1a311f0
Merge pull request #30 from inloco/fix/missing-method-GobEncode
RodrigoCMoraes May 9, 2024
f46ece6
upgrade dependencies
RodrigoCMoraes May 10, 2024
0cc2aa5
Merge branch 'main' of github.com:inloco/packer-plugin-sdk into upgra…
RodrigoCMoraes May 10, 2024
dae6c9d
fix: missing pkg after merge
RodrigoCMoraes May 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
101 changes: 0 additions & 101 deletions .circleci/config.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
Expand Down
3 changes: 3 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

changelog:
categories:
- title: Breaking Changes 🛠
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Lint GitHub Actions Workflows
on:
push:
pull_request:
permissions:
contents: read
jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 4.1.4
- name: "Check workflow files"
uses: docker://docker.mirror.hashicorp.services/rhysd/actionlint:latest
172 changes: 172 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
name: go-test
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
TEST_RESULTS_PATH: /tmp/test-results
permissions:
contents: read
jobs:
linux-tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- '1.20'
- '1.21.x'
permissions:
id-token: write
contents: read
steps:
- name: Setup go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # 5.0.0
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 4.1.4

# - name: Check that go.mod does not contain a replace
# run: |
# if grep -Eq "^\s*replace" <go.mod; then
# echo "go.mod contains a replace but should not." >&2
# false
# fi

- name: Create test directory
run: |
mkdir -p ${{ env.TEST_RESULTS_PATH }}/packer-plugin-sdk

- name: Run gofmt
run: |
make fmt-check

- name: Run Go Generate Check
run: |
make generate-check

- name: Install gotestsum
run: go install gotest.tools/[email protected]

# Required for passing tests as we need to have a replace in the go.mod
# otherwise we'll get compile-time errors when running them
- name: Fix gocty
run: |
make install-gen-deps
packer-sdc fix .
go mod tidy

- name: Run Go tests
run: |
PACKAGE_NAMES="$(go list ./...)"
echo "Running $(echo "$PACKAGE_NAMES" | wc -w) packages"
echo "$PACKAGE_NAMES"
echo "$PACKAGE_NAMES" | xargs -I {} gotestsum --format=short-verbose --junitfile "$TEST_RESULTS_PATH"/packer-plugin-sdk/gotestsum-report.xml -- -count 1 -p 2 {};

# Save coverage report parts
- name: Upload and save artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: linux test results
path: ${{ env.TEST_RESULTS_PATH }}

windows-tests:
runs-on: windows-latest
strategy:
matrix:
go-version:
- '1.20'
- '1.21.x'
permissions:
id-token: write
contents: read
steps:
- name: Run git config #Windows-only
run: git config --global core.autocrlf false

- name: Setup Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # 5.0.0
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 4.1.4

- name: Install gotestsum
shell: bash
run: go install gotest.tools/[email protected]

# Required for passing tests as we need to have a replace in the go.mod
# otherwise we'll get compile-time errors when running them
- name: Fix gocty
run: |
make install-gen-deps
packer-sdc fix .
go mod tidy

- name: Run Go tests
shell: bash
run: |
PACKAGE_NAMES="$(go list ./...)"
echo "Running $(echo "$PACKAGE_NAMES" | wc -w) packages"
echo "$PACKAGE_NAMES"
echo "$PACKAGE_NAMES" | xargs -I {} gotestsum --format=short-verbose --junitfile "$TEST_RESULTS_PATH"/packer-plugin-sdk/gotestsum-report.xml -- -count 1 -p 2 {};

# Save coverage report parts
- name: Upload and save artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: windows test results
path: ${{ env.TEST_RESULTS_PATH }}

darwin-tests:
runs-on: macos-latest
strategy:
matrix:
go-version:
- '1.20'
- '1.21.x'
permissions:
id-token: write
contents: read
steps:
- name: Setup go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # 5.0.0
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 4.1.4

- name: Create test directory
run: |
mkdir -p ${{ env.TEST_RESULTS_PATH }}/packer-plugin-sdk

- name: Install gotestsum
run: go install gotest.tools/[email protected]

# Required for passing tests as we need to have a replace in the go.mod
# otherwise we'll get compile-time errors when running them
- name: Fix gocty
run: |
make install-gen-deps
packer-sdc fix .
go mod tidy

- name: Run Go tests
run: |
PACKAGE_NAMES="$(go list ./...)"
echo "Running $(echo "$PACKAGE_NAMES" | wc -w) packages"
echo "$PACKAGE_NAMES"
echo "$PACKAGE_NAMES" | xargs -I {} gotestsum --format=short-verbose --junitfile "$TEST_RESULTS_PATH"/packer-plugin-sdk/gotestsum-report.xml -- -count 1 -p 2 {};

# Save coverage report parts
- name: Upload and save artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: macos test results
path: ${{ env.TEST_RESULTS_PATH }}
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 4.1.4
- name: GoReleaser
uses: goreleaser/[email protected]
args: "release"
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # 5.0.0
with:
args: "release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

project_name: packer-plugin-sdk
build:
skip: true
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
See [Releases](https://github.com/hashicorp/packer-plugin-sdk/releases) for latest CHANGELOG information.
# Latest Release
Please refer to [releases](https://github.com/hashicorp/packer-plugin-sdk/releases) for latest CHANGELOG information.

## 0.3.1 (July 28, 2022)

Expand Down
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Copyright (c) 2020 HashiCorp, Inc.

Mozilla Public License Version 2.0
==================================

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ See the [Extending Packer](https://www.packer.io/docs/plugins/creation#extending

See the [Extending Packer](https://www.packer.io/docs/plugins/creation#extending-packer) section on the Packer website.

## Testing

The SDK embeds tests to ensure we don't introduce a regression in the future. Up to version 0.5.0 of the SDK, tests would be runnable with `make test` on their own but since we removed the `replace` statement for `go-cty` tests won't work out-of-the-box. Users will need to invoke `packer-sdc fix .` in order to fix the `go.mod` and `go.sum` files before running tests.
Please do not commit these changes, as adding this `replace` section to the `go.mod` file will make it impossible for dependents to run `go install` for `packer-sdc` afterwards.

## Packer Scope (Plugins VS Core)

### Packer Core
Expand Down
Loading
Loading