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

upgrade dependencies #32

wants to merge 123 commits into from

Commits on Sep 12, 2022

  1. Fix goreleaser configuration

    Wilken Rivera committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    16fb193 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. [COMPLIANCE] Update MPL 2.0 LICENSE

    hashicorp-copywrite[bot] authored and lbajolet-hashicorp committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    54a995c View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2022

  1. Configuration menu
    Copy the full SHA
    33e82fa View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2022

  1. Configuration menu
    Copy the full SHA
    b493aea View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2023

  1. ssh: fix DownloadDir empty response check (hashicorp#147)

    We used to check if a ssh server returns an empty payload with a len(fi)
    < 0, which can never succeed as len never returns negative values.
    
    This commit changes the condition to an == instead.
    lbajolet-hashicorp authored Jan 11, 2023
    Configuration menu
    Copy the full SHA
    5012fd5 View commit details
    Browse the repository at this point in the history
  2. communicator: add note to docs on protocol/Windows

    Recently, an update to Windows's default SSH implementation added an
    extra check for the mark-of-the-web to their code, which if in verbose
    mode, ends-up producing an error log, and terminates the process with a
    non-zero error code, even if the transfer is successful.
    
    Because of this, scp transfers fail all the time in such an environment,
    and the recommended workaround for now is to set sftp as the transfer
    protocol, as this one sets the mark-of-the-web successfully, and
    therefore ends with a 0 error code.
    
    Since this is surprising behaviour to users, we add a paragraph to the
    docs, so they know about this workaround.
    lbajolet-hashicorp committed Jan 11, 2023
    Configuration menu
    Copy the full SHA
    1f4d6a9 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2023

  1. Configuration menu
    Copy the full SHA
    34ed5d9 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2023

  1. Update links used in embedded documentation partials

    - Migrates the formats of links in Markdown content as part of the [Docs
      Content Link Rewrites
      project](https://docs.google.com/document/d/1WaSyvoVPS-YCNiSPX0ynGpvc1gySEcpbrRoQVhimQCA/edit)
    Wilken Rivera authored and nywilken committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    4a11ef9 View commit details
    Browse the repository at this point in the history
  2. Bump version for next release

    Wilken Rivera committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    404e1f9 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2023

  1. shell-local: fix supported_os error check

    Commit 34ed5d9 which consists of linting fixes essentially had an
    error in the code and the error check for `supported_os' was inverted in
    this commit, making shell-local fail on all supported OSes now.
    
    We re-invert this condition so it behaves as it used to.
    lbajolet-hashicorp committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    6f32b7f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cc05a3a View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. Update environment variables URL in error message

    Wilken Rivera authored and nywilken committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    fd628a5 View commit details
    Browse the repository at this point in the history
  2. ssh: add warnings on DSA usage

    The DSA signature algorithm is not considered secure anymore, and is
    actively deprecated in the Go crypto libs.
    
    To let users know that they should not use that anymore, we add a notice
    in the comments for the SSH private key options.
    lbajolet-hashicorp committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    0ab9c86 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. Remove ioutil in favour of io and os packages and exclude crypto/dsa …

    …from linting as the warning is not relevant.
    rossmaclean authored and lbajolet-hashicorp committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    45e4613 View commit details
    Browse the repository at this point in the history
  2. Add deprecation warning for DSA

    Co-authored-by: Lucas Bajolet <[email protected]>
    rossmaclean and lbajolet-hashicorp committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    aa0cffe View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. Update hashicorp/go-getter pkg to address CVE-2023-0475

    Wilken Rivera authored and nywilken committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    2085e33 View commit details
    Browse the repository at this point in the history
  2. Add go-test action for SDK

    Wilken Rivera committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    a124fa7 View commit details
    Browse the repository at this point in the history
  3. Update working directory for go checks

    Wilken Rivera committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    4754c3b View commit details
    Browse the repository at this point in the history
  4. Update generated files

    Wilken Rivera committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    dcc669e View commit details
    Browse the repository at this point in the history
  5. Remove directory from matrix

    Wilken Rivera committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    e5ba35c View commit details
    Browse the repository at this point in the history
  6. Update go generate with Go 1.18

    Wilken Rivera committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    47e77fe View commit details
    Browse the repository at this point in the history
  7. Remove Go 1.19 from test matrix

    Go 1.19 has different formatting directives that appears to be causing
    conflicts with 1.18.
    Wilken Rivera committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    e2f3241 View commit details
    Browse the repository at this point in the history
  8. packer-sdc: return errors on duplicate tag/field

    When generating the flattened structures for a HCL2-compatible config,
    we didn't prevent users from defining duplicate fields or tags, instead
    warning them.
    
    The warning in itself did not prevent the resulting structures from
    being generated, leading into a situation where the first definition of
    the arg/tag would have precedence over the subsequent definitions,
    leading to shadowing their definitions.
    
    To prevent this in the future, we immediately return an error when such
    a conflict is introduced, and signal to the user which attribute is
    problematic.
    lbajolet-hashicorp authored and nywilken committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    d160ce0 View commit details
    Browse the repository at this point in the history
  9. Update golang.org/x/net to address GO-2023-1571

    Wilken Rivera authored and nywilken committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    62bcc50 View commit details
    Browse the repository at this point in the history
  10. Use login user name when available

    Wilken Rivera authored and nywilken committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    ac3abdc View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2023

  1. Remove circle-ci jobs in favor of GHA

    Wilken Rivera authored and nywilken committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    a11399a View commit details
    Browse the repository at this point in the history
  2. Add test to runner for Darwin Os

    * Remove directory from matrix build for Windows config
    Wilken Rivera authored and nywilken committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    ba0cbeb View commit details
    Browse the repository at this point in the history
  3. cut release v0.4.0

    Wilken Rivera committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    75fe363 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2023

  1. Configuration menu
    Copy the full SHA
    b03e2b6 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2023

  1. Configuration menu
    Copy the full SHA
    e0635ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85465e8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5249eb0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9b87bcd View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2023

  1. Configuration menu
    Copy the full SHA
    10b594a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9a0710c View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2023

  1. Add basic test for commonServer.ConfigSpec

    The Packer SDK relies on encoding/gob for serializing hcldec.ObjectSpec
    over RPC. The added test check that types implementing the HCL2Speccer
    interface can be encoded/decoded without issue.
    
    Starting in go-cty v1.11.0 support for encoding/gob was removed, which
    causes the added tests to fail. This is expected and is meant to help
    catch potential regressions moving forward.
    
    Test results running go-cty v1.10.0
    ```
    --- PASS: TestCommonServer_ConfigSpec (0.00s)
        --- PASS: TestCommonServer_ConfigSpec/Builder_Component_Server (0.00s)
        --- PASS: TestCommonServer_ConfigSpec/Datasource_Component_Server (0.00s)
        --- PASS: TestCommonServer_ConfigSpec/Provisioner_Component_Server (0.00s)
    === RUN   TestCommunicatorRPC
    ```
    
    Test results running go-cty v1.13.1
    ```
    2023/04/21 11:28:05 [WARN] Client is closing mux
    --- FAIL: TestCommonServer_ConfigSpec (0.00s)
        --- FAIL: TestCommonServer_ConfigSpec/Builder_Component_Server (0.00s)
    panic: ConfigSpec failed: gob: type cty.Type has no exported fields [recovered]
            panic: ConfigSpec failed: gob: type cty.Type has no exported fields
    
    goroutine 299 [running]:
    testing.tRunner.func1.2({0x10524fb60, 0x14000486530})
            /usr/local/go/src/testing/testing.go:1389 +0x1c8
    testing.tRunner.func1()
            /usr/local/go/src/testing/testing.go:1392 +0x384
    panic({0x10524fb60, 0x14000486530})
            /usr/local/go/src/runtime/panic.go:838 +0x204
    github.com/hashicorp/packer-plugin-sdk/rpc.(*commonClient).ConfigSpec(0x14000475f08)
            /Users/dev/Development/packer-plugin-sdk/rpc/common.go:48 +0x24c
    github.com/hashicorp/packer-plugin-sdk/rpc.TestCommonServer_ConfigSpec.func1(0x140004e5860)
            /Users/dev/Development/packer-plugin-sdk/rpc/common_test.go:44 +0x10c
    testing.tRunner(0x140004e5860, 0x14000483dd0)
            /usr/local/go/src/testing/testing.go:1439 +0x110
    created by testing.(*T).Run
            /usr/local/go/src/testing/testing.go:1486 +0x300
    FAIL    github.com/hashicorp/packer-plugin-sdk/rpc      0.796s
    ```
    Wilken Rivera authored and nywilken committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    e5dc31b View commit details
    Browse the repository at this point in the history
  2. Add recover to fail test on panic

    ```
    ~> go get github.com/zclconf/[email protected]
    ~>  go test ./rpc/... -v -run=TestCommonServer
    === RUN   TestCommonServer_ConfigSpec
    === RUN   TestCommonServer_ConfigSpec/Builder_Component_Server
        common_test.go:75: Call to ConfigSpec for Builder Component Server panicked: ConfigSpec failed: gob: type cty.Type has no exported fields
    2023/04/21 14:31:27 [WARN] Shutting down mux conn in Server
    2023/04/21 14:31:27 [WARN] Client is closing mux
    === RUN   TestCommonServer_ConfigSpec/Datasource_Component_Server
        common_test.go:75: Call to ConfigSpec for Datasource Component Server panicked: ConfigSpec failed: gob: type cty.Type has no exported fields
    2023/04/21 14:31:27 [WARN] Shutting down mux conn in Server
    2023/04/21 14:31:27 [WARN] Client is closing mux
    === RUN   TestCommonServer_ConfigSpec/Provisioner_Component_Server
        common_test.go:75: Call to ConfigSpec for Provisioner Component Server panicked: ConfigSpec failed: gob: type cty.Type has no exported fields
    2023/04/21 14:31:27 [WARN] Shutting down mux conn in Server
    2023/04/21 14:31:27 [WARN] Client is closing mux
    --- FAIL: TestCommonServer_ConfigSpec (0.00s)
        --- FAIL: TestCommonServer_ConfigSpec/Builder_Component_Server (0.00s)
        --- FAIL: TestCommonServer_ConfigSpec/Datasource_Component_Server (0.00s)
        --- FAIL: TestCommonServer_ConfigSpec/Provisioner_Component_Server (0.00s)
    FAIL
    FAIL    github.com/hashicorp/packer-plugin-sdk/rpc      0.278s
    FAIL
    ```
    Wilken Rivera authored and nywilken committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    21a1e5e View commit details
    Browse the repository at this point in the history
  3. Add recover to fail datasource test on cty panic

    Wilken Rivera authored and nywilken committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    b08070c View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2023

  1. communicator: don't set bastion cert if key is set

    When attempting to set the bastion key/certificate for authenticating
    with the bastion, we generally fallback to the ones defined by the SSH
    configuration.
    
    However, if the bastion SSH key is set, and not the certificate, but the
    SSH connection's are, since the conditions are separate, we end-up in a
    situation where the bastion's SSH key uses the one from the config, and
    the certificate fall backs to the one from the SSH connection.
    
    This in turn fails, as the certificate's public key matches the private
    key from the SSH connection, and not the bastion's.
    
    To avoid a situation like this, we only fallback to the SSH connection's
    certificate if the bastion's SSH key isn't set.
    lbajolet-hashicorp authored and nywilken committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    a27f60a View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2023

  1. Bump Go version to 1.20

    * Remove module cache
    Wilken Rivera authored and nywilken committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    cb843aa View commit details
    Browse the repository at this point in the history
  2. Fix formatting generated with 1.20

    Wilken Rivera authored and nywilken committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    3028bde View commit details
    Browse the repository at this point in the history
  3. ssh: improve debug logging

    When trying to figure out the exact behaviour of the ssh communicator
    when copying directories, I found myself wondering what each log was
    conveying.
    
    To make it clearer what's happening on each step, we add some more logs
    during the copy steps, and make the `creating directory' log a bit more
    explicit, so we understand what's happening.
    lbajolet-hashicorp committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    097c924 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2023

  1. Configuration menu
    Copy the full SHA
    8331daf View commit details
    Browse the repository at this point in the history

Commits on May 25, 2023

  1. Fix menu boot command vnc key stroke (hashicorp#184)

    * boot_command: add menu special key
    
    * Add menu special key
    
    * Add menu special key
    
    * vnc_driver: test menu key
    
    * vnc_driver: test menu key
    
    * Fix formatting generated with 1.20.3
    korli authored May 25, 2023
    Configuration menu
    Copy the full SHA
    7c81952 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Add compile time check for go-cty

    In v1.11.0, the go-cty package dropped support for encoding/gob. Gob support is used
    by the SDK to serialize HCL2 object specs over the wire. If a plugin or Packer upgrades
    their version of zclconf/go-cty to one that does not contain Gob support the plugin will build
    but crash when trying to run a build on an HCL2 template. By adding this check, a consumer of the SDK
    will fail to compile if they are using an unsupported version of go-cty. This check is being added
    as a guard to prevent Packer SDK consumers from becoming out of sync with unsupported go-cty versions.
    
    ```
    ~> go get github.com/hashicorp/go-cty v1.13.0
    ~> make dev
    rpc/cty_encode.go:15:24 cannot use cty.Value{} (value of type cty.Value) as type gob.GobEncoder
    ```
    Wilken Rivera authored and nywilken committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    0c09c89 View commit details
    Browse the repository at this point in the history
  2. Move check into rpc/init

    * Add link to GitHub Issue
    nywilken committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    df99313 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Replace gitub.com/zclconf/[email protected] with fork github.com/nywilken…

    …/go-cty
    
    In an effort to provide Packer plugins access to the github.com/zclconf/go-cty enhancements,
    while still providing access to encoding/gob support the Packer team has forked the go-cty package under github.com/nywilken/go-cty.
    This is a temporary fork that will be removed once it is no longer needed.
    
    Refer to hashicorp#187
    Wilken Rivera authored and nywilken committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    2853bc0 View commit details
    Browse the repository at this point in the history
  2. Bump github.com/hashicorp/hcl/v2 to v2.16.2

    This commit updates github.com/hashicorp/hcl/v2 to the last known release of HCL/v2
    that does not rely on v1.13.0 of github.com/zclconf/go-cty.
    Wilken Rivera authored and nywilken committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    8c4e43c View commit details
    Browse the repository at this point in the history
  3. Fix buildtags

    ```
    ~> go fix ./...
    filelock/filelock.go: fixed buildtag
    multistep/commonsteps/iso_config_test.go: fixed buildtag
    packer/cache_config_unix.go: fixed buildtag
    packer/cache_config_unix_test.go: fixed buildtag
    packer/cache_config_windows.go: fixed buildtag
    packer/cache_config_windows_test.go: fixed buildtag
    pathing/config_file_unix.go: fixed buildtag
    pathing/config_file_unix_test.go: fixed buildtag
    pathing/config_file_windows.go: fixed buildtag
    pathing/config_file_windows_test.go: fixed buildtag
    sdk-internals/communicator/ssh/communicator_test.go: fixed buildtag
    template/parse_test.go: fixed buildtag
    
    ```
    Wilken Rivera authored and nywilken committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    5e4aae7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    af18c71 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2023

  1. Remove extra backticks from HTTP server documentation (hashicorp#191)

    * Remove extra backticks from HTTP server documentation
    
    * $ make generate
    edigaryev authored Jul 6, 2023
    Configuration menu
    Copy the full SHA
    2a6d852 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. [HPR-1190] Add packer-sdc fix command (hashicorp#190)

    * packer-sdc: Add fix sub-command
    
    Fix rewrites parts of the plugin codebase to address known issues or
    common workarounds used within plugins consuming the Packer plugin SDK.
    
    ```
    ~>  ./packer-sdc fix -check ../../../packer-plugin-tencentcloud
    Found the working directory
    /Users/wilken/Development/linux-dev/packer-plugin-tencentcloud
    gocty Unfixed!
    
    ```
    
    * Update fix command
    
    This change is major refactor of the fix command, and it's underlying
    fixer interface. This change adds support for the `-diff` flag which
    displays the diff between the unfixed and fixed files, if available.
    
    Along with the refactor the ability to apply multiple fixes to the same
    file without potential write conflicts where previous changes were
    removed after reprocessing.
    
    * Add a scan function that returns a list of files to apply a fix on
    to provide flexibility in the future for collecting a list of files.
    
    * Replace cmp.Diff with github.com/pkg/diff for better file diffs
    * Return error when missing directory argument
    * Add error handling when trying to read any scanned files
    Wilken Rivera authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    7d3a4b2 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. Fix diff header for fix command

    Old Output
    ```
    ~>  ./packer-sdc fix -diff ../../../packer
    --- /home/vagrant/Development/packer/go.mod
    +++ /home/vagrant/Development/packer/go.mod-fixed
    @@ -213,3 +213,5 @@
     )
    
    ```
    
    New Output
    ```
    ~>  ./packer-sdc fix -diff ../../../packer
    --- /home/vagrant/Development/packer/go.mod
    +++ Fixed: /home/vagrant/Development/packer/go.mod
    @@ -213,3 +213,5 @@
     )
    
    ```
    nywilken committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    2b9991b View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. Update pinned actions to latest trusted versions

    Wilken Rivera authored and nywilken committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    f014f4e View commit details
    Browse the repository at this point in the history
  2. Cut release v0.5.0

    Wilken Rivera authored and nywilken committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    9115d64 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. Configuration menu
    Copy the full SHA
    7be7944 View commit details
    Browse the repository at this point in the history
  2. go.mod: remove replace statement for go-cty

    The way we install the SDK and its dependencies in plugins, using
    go install, is incompatible with replace statements.
    
    Therefore, we remove that statement from the go.mod, and leave the
    responsibility of including that replace to plugins that import the SDK.
    lbajolet-hashicorp committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    f4e5599 View commit details
    Browse the repository at this point in the history
  3. cmd: allow packer-sdc fix on the SDK

    Before this commit, `packer-sdc fix' would only work on plugins that
    import the SDK, but we also need to make `packer-sdc fix' compatible
    with the SDK itself, so we add an extra check to packer-sdc so it
    doesn't ignore the SDK when applying the replace fix.
    lbajolet-hashicorp committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    1008a3b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    98985e1 View commit details
    Browse the repository at this point in the history
  5. workflows: add packer-sdc fix to the test workflow

    Since we remove the `replace' statement from the go.mod, tests will fail
    as the updated version of go-cty does not support gob, and some tests
    rely on that by default as we init RPC to work with gob-encoded
    payloads.
    
    To avoid this failure in CI, we add an extra step to the go-test
    workflow so that it amends the go.mod, tidies it to resolve missing
    sums, and continues with testing afterwards
    lbajolet-hashicorp committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    d758176 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    57c8858 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5c50987 View commit details
    Browse the repository at this point in the history
  8. Remove use of Go 1.20 language features

    Wilken Rivera authored and nywilken committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    28a0063 View commit details
    Browse the repository at this point in the history
  9. Add matrix builds for supported Go versions

    Wilken Rivera authored and nywilken committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    04cbbf4 View commit details
    Browse the repository at this point in the history
  10. Bump Go module minimum version to 1.19

    In go 1.19 changes to go fmt resulted in slightly different comment formatting for generated code.
    Bumping to Go 1.19 ensures that the correct version of Go tooling is used formatting the generated code.
    Wilken Rivera authored and nywilken committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    9be5b0f View commit details
    Browse the repository at this point in the history
  11. go.mod: retract v0.5.0

    Since the SDK in v0.5.0 contains a release statement in its go.mod,
    this makes it impossible to go install packer-sdc from a plugin.
    
    Since those plugins rely on their Makefile to do this, we cannot change
    them all at once, so we fixed the problem in the SDK code itself, and
    v0.5.0 is broken, so we retract it in this commit.
    lbajolet-hashicorp committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    4c19df0 View commit details
    Browse the repository at this point in the history
  12. workflows: improve replace check in go.mod

    Since the latest comment introduces a retract statement, with a comment
    that contains `replace', the check failed, so we improve it to only
    consider `replace' if they're the first thing on a line.
    lbajolet-hashicorp committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b74d508 View commit details
    Browse the repository at this point in the history
  13. Cut release v0.5.1

    Wilken Rivera committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    3a3e3a1 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. Bump go-getter to v2.2.1

    zliang-akamai authored and nywilken committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    4328d73 View commit details
    Browse the repository at this point in the history
  2. acctest: add capability to add args to build

    When running an acceptance test, we may need to invoke Packer with
    extra flags to ensure it behaves as expected.
    
    Therefore, we add this capability to the TestCase structure so it
    injects them verbatim in the command-line.
    lbajolet-hashicorp authored and nywilken committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    84dd3ab View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. hcl2helper: preemptively panic on nil hcl spec

    When the code from a plugin differs from its generated FlatConfig, we
    may encounter a nil object spec for the values in the output of a
    component.
    This translates as a nil dereferencing panic within the hcl library,
    caused by a config and tags being out-of-sync.
    
    To avoid users the hassle of delving in this code, and the hcl
    library's, we preemptively panic in the SDK code, with a message
    suggesting regenerating the code for the component's specs.
    lbajolet-hashicorp committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    e244605 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. Update gopkg.in/yaml.v3 to address CVE-2022-28948

    This change address the yaml.v3 advisory reported for v0.5.1
    https://deps.dev/go/github.com%2Fhashicorp%2Fpacker-plugin-sdk/v0.5.1
    nywilken committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    69dbb1e View commit details
    Browse the repository at this point in the history
  2. Bump github.com/dylanmei/winrmtest to address CVE-2021-3538

    The latest available release of github.com/dylanmei/winrmtest removes
    its dependency on github.com/satori/go.uuid, which was affected by
    CVE-2021-3539 https://deps.dev/advisory/osv/GO-2020-0018
    nywilken committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    19d1c81 View commit details
    Browse the repository at this point in the history
  3. Bump golang.org/x/net to address CVE-2023-3978

    Addresses vulnerability with improper rendering of text nodes in
    golang.org/x/net/html
    nywilken committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    10cf15c View commit details
    Browse the repository at this point in the history
  4. Add 1.21.x to testing matrix

    nywilken committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    1840b5f View commit details
    Browse the repository at this point in the history
  5. Bump Go tool chain to 1.20

    This change was made to address a number of vulnerabilities reported by govulncheck in Go 1.19.13
    Support for Go1.19 is removed with this change. Moving forward the minimum Go version will be bumped after a
    new Go minor version is released.
    
    ```
    ~>  govulncheck ./...
    Scanning your code and 599 packages across 99 dependent modules for known vulnerabilities...
    
    Vulnerability #1: GO-2023-2043
        Improper handling of special tags within script contexts in html/template
      More info: https://pkg.go.dev/vuln/GO-2023-2043
      Standard library
        Found in: html/[email protected]
        Fixed in: html/[email protected]
        Example traces found:
          #1: multistep/commonsteps/step_http_server.go:123:2: commonsteps.StepHTTPServer.Run calls http.Server.Serve, which eventually calls template.Template.Execute
          #2: multistep/commonsteps/step_http_server.go:123:2: commonsteps.StepHTTPServer.Run calls http.Server.Serve, which eventually calls template.Template.ExecuteTemplate
    
    Vulnerability #2: GO-2023-2041
        Improper handling of HTML-like comments in script contexts in html/template
      More info: https://pkg.go.dev/vuln/GO-2023-2041
      Standard library
        Found in: html/[email protected]
        Fixed in: html/[email protected]
        Example traces found:
          #1: multistep/commonsteps/step_http_server.go:123:2: commonsteps.StepHTTPServer.Run calls http.Server.Serve, which eventually calls template.Template.Execute
          #2: multistep/commonsteps/step_http_server.go:123:2: commonsteps.StepHTTPServer.Run calls http.Server.Serve, which eventually calls template.Template.ExecuteTemplate
    
    Your code is affected by 2 vulnerabilities from the Go standard library.
    
    ```
    nywilken committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    7128c8a View commit details
    Browse the repository at this point in the history
  6. Fix filepath.Clean for file prefixed URLs

    Wilken Rivera authored and nywilken committed Oct 16, 2023
    Configuration menu
    Copy the full SHA
    a68554d View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. Bump dev version

    Wilken Rivera authored and nywilken committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    85bbc31 View commit details
    Browse the repository at this point in the history
  2. Bump golang.org/x/tools for Go 1.20 fixes

    Wilken Rivera authored and nywilken committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    a7f1f5c View commit details
    Browse the repository at this point in the history
  3. deps: bump github.com/mitchellh/cli to v1.1.5 for security fix

    Wilken Rivera authored and nywilken committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    6961c20 View commit details
    Browse the repository at this point in the history
  4. deps: bump github.com/hashicorp/yamux to v0.1.1

    Wilken Rivera authored and nywilken committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    9e65ca1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4d8c199 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    530fc82 View commit details
    Browse the repository at this point in the history
  7. depg: bump golang.org/x/net to 0.17.0 for security fixes

    Wilken Rivera authored and nywilken committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    3327058 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Bump upstream modules to support latest hcl/v2 offerrings

    Wilken Rivera authored and nywilken committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    fe7beb7 View commit details
    Browse the repository at this point in the history
  2. Update go-cty fixer replace directive to github.com/nywilken/go-cty v…

    …1.13.3
    Wilken Rivera authored and nywilken committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    c170d73 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. Initial fix for underlying struct mis-match bug

    Update cmd/packer-sdc/internal/mapstructure-to-hcl2/mapstructure-to-hcl2.go
    
    Co-authored-by: Lucas Bajolet <[email protected]>
    2 people authored and nywilken committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    4fb8273 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2023

  1. packer-sdc/struct-markdown: Allow packer-internal as project director…

    …y for testing purposes
    
    This change is being made to allow the invocation of struct-markdown to work against the internal
    Packer testing repo. The purpose of the repo is to allow for automated testing against unreleased versions of
    the Packer SDK.
    Wilken Rivera authored and nywilken committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    e599745 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2023

  1. Cut release v0.5.2

    Wilken Rivera committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    eac3a5f View commit details
    Browse the repository at this point in the history
  2. Prepare for v0.5.3 dev

    * Remove helper script used for checking go mods
    * Remove helper script for testing mismatch struct changes
    Wilken Rivera committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    4362ef5 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. Bump golang.org/x/crypto to address CVE-2023-48795

    Wilken Rivera authored and nywilken committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    f9edec7 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Ui: add format-string alternatives to functions

    The say/error/ask methods on Ui only accept formatted strings, which is
    a bit cumbersome to do at callsite every time we need to print out
    something formatted with dynamic information.
    
    To reduce that cumbersomness, we add some convenience alternatives to
    the Ui implementations in the SDK, so they now expose Sayf, Askf and
    Errorf in addition to the rest.
    lbajolet-hashicorp committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    d970fb9 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. Bump github.com/zclconf/go-cty from 1.10.0 to 1.14.4

    Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.10.0 to 1.14.4.
    - [Release notes](https://github.com/zclconf/go-cty/releases)
    - [Changelog](https://github.com/zclconf/go-cty/blob/main/CHANGELOG.md)
    - [Commits](zclconf/go-cty@v1.10.0...v1.14.4)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/zclconf/go-cty
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored Mar 21, 2024
    Configuration menu
    Copy the full SHA
    514ab19 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Bump github.com/hashicorp/hcl/v2 from 2.13.0 to 2.20.1

    Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.13.0 to 2.20.1.
    - [Release notes](https://github.com/hashicorp/hcl/releases)
    - [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
    - [Commits](hashicorp/hcl@v2.13.0...v2.20.1)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/hashicorp/hcl/v2
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    97c2819 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    b33ea9e View commit details
    Browse the repository at this point in the history
  2. version: introduce metadata to PluginVersion

    As it stands now, plugin developers can only specify a version's core
    semver-compatible version, and a prerelease.
    In usage though, some plugins use metadata to add some extra context on
    the binary that was built, like the git commit, or the delta between the
    last release and the current HEAD from which a plugin was built.
    
    This, coupled with the 1.11.0 changes to plugin loading and version
    support, means that we cannot support such a workflow with the current
    code, as we will now start enforcing proper semver for plugins, so we
    are at risk of having plugins either not load, or lose information when
    releasing.
    
    Therefore as an attempt to address those issues, we are adding official
    support in the SDK for metadata in versions. That change introduces two
    new functions: `NewPluginVersion` and `NewRawVersion`. Both are intended
    as replacements for the now deprecated `InitializePluginVersion`.
    lbajolet-hashicorp committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    2a28d48 View commit details
    Browse the repository at this point in the history
  3. version: adapt FormatedVersion to use String

    Since FormatedVersion was essentially the same thing as `String` with
    the extra GitCommit if defined, we change its implementation to rely on
    the code committed for String.
    lbajolet-hashicorp committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    ddbda65 View commit details
    Browse the repository at this point in the history
  4. version: limit core version to 3 segments

    The go-version library we use for parsing versions from the plugin
    supports 4-segmented versions.
    This may not be ideal for us, as we want to limit the sprawling nature
    of plugin installations, which if we start accepting sub-patch version
    bumps, may become quite strange.
    The release workflows we offer as template does not take that into
    account, and I'm not sure our docs do as well.
    
    Since there are many unknowns here, 4-segmented version numbers are not
    semver-valid, and we do not know how tooling will react, we ultimately
    decide not to allow those in the SDK.
    
    If a developer tries to define a 4-segmented version number, the plugin
    will crash instantly, at least giving users a message quickly that the
    version number is invalid, and that they need to limit themselves to a
    3-segment version number.
    lbajolet-hashicorp committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    92242be View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Configuration menu
    Copy the full SHA
    38ffab0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b2d07c View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. Merge pull request #22 from inloco/dependabot/go_modules/github.com/h…

    …ashicorp/hcl/v2-2.20.1
    
    Bump github.com/hashicorp/hcl/v2 from 2.13.0 to 2.20.1
    RodrigoCMoraes authored Apr 19, 2024
    Configuration menu
    Copy the full SHA
    57d8d75 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into dependabot/go_modules/github.com/zclconf/go-…

    …cty-1.14.4
    
    Signed-off-by: RodrigoCMoraes <[email protected]>
    RodrigoCMoraes authored Apr 19, 2024
    Configuration menu
    Copy the full SHA
    d5624d6 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #21 from inloco/dependabot/go_modules/github.com/z…

    …clconf/go-cty-1.14.4
    
    Bump github.com/zclconf/go-cty from 1.10.0 to 1.14.4
    RodrigoCMoraes authored Apr 19, 2024
    Configuration menu
    Copy the full SHA
    da515fe View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    779b8c1 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #24 from inloco/upgrade-dependencies

    upgrade: fix security issues
    RodrigoCMoraes authored Apr 19, 2024
    Configuration menu
    Copy the full SHA
    65072c8 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. version: don't remake semVer if not nil

    The SemVer function of a PluginVersion returns the version.Version
    instance bound to the PluginVersion.
    
    In former implementations of the structure, this could be nil in some
    cases, as only the version components were being registered, and the
    code would make sure that they were a valid semver version.
    
    Recent changes reorganised this code by making the semVer attribute
    always present, so while theoretically it could be nil, this would
    indicate a manipulation error.
    
    Therefore, we don't need to perform this check to re-create the semVer
    attribute, and by that change we fix the underlying issue that made
    semVer drop its pre-release/metadata parts when doing so.
    lbajolet-hashicorp committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    6345039 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. Configuration menu
    Copy the full SHA
    a4700a2 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Merge branch 'main' of github.com:hashicorp/packer-plugin-sdk into se…

    …curity/upgrade-dependencies
    RodrigoCMoraes committed May 3, 2024
    Configuration menu
    Copy the full SHA
    57155da View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Configuration menu
    Copy the full SHA
    bb4ca5b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11fc3c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    61d973c View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' of github.com:hashicorp/packer-plugin-sdk into se…

    …curity/upgrade-dependencies
    RodrigoCMoraes committed May 7, 2024
    Configuration menu
    Copy the full SHA
    11d9aff View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bfa2111 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cb89d15 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #26 from inloco/security/upgrade-dependencies

    Security/upgrade dependencies
    RodrigoCMoraes authored May 7, 2024
    Configuration menu
    Copy the full SHA
    28d5abf View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. fix: ci macami error

    panic: interface conversion: interface {} is big.Float, not *big.Float
    RodrigoCMoraes committed May 9, 2024
    Configuration menu
    Copy the full SHA
    ea92fa9 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #29 from inloco/fix/ci-macami-error

    fix: ci macami error
    RodrigoCMoraes authored May 9, 2024
    Configuration menu
    Copy the full SHA
    46ffb1f View commit details
    Browse the repository at this point in the history
  3. fix: missing ci

    RodrigoCMoraes committed May 9, 2024
    Configuration menu
    Copy the full SHA
    6e657c8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0873677 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1a311f0 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. upgrade dependencies

    RodrigoCMoraes committed May 10, 2024
    Configuration menu
    Copy the full SHA
    f46ece6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0cc2aa5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dae6c9d View commit details
    Browse the repository at this point in the history