Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

A bug in the go-argmapper library #4897

Open
dmai-apixio opened this issue Aug 25, 2023 · 0 comments
Open

A bug in the go-argmapper library #4897

dmai-apixio opened this issue Aug 25, 2023 · 0 comments
Labels

Comments

@dmai-apixio
Copy link

dmai-apixio commented Aug 25, 2023

Describe the bug
When use builder null and platform exec together, i have an unexpected behavior.

Steps to Reproduce
Steps to reproduce the behavior.

project = "test"
app "app0" {
  runner {
    profile = "docker-01H8JNQF38TP6Z86SEKAV90D4A"
  }
  build {
    use "null" {}
  }
  deploy {
    use "exec" {
      command = ["echo", "1800"]
    }
  }
}

Output

waypoint up -app=app0 -local=false -vvv
2023-08-25T12:20:35.930-0700 [INFO]  waypoint: waypoint version: full_string="v0.11.4 (7128fba)" version=v0.11.4 prerelease="" metadata="" revision=7128fba
2023-08-25T12:20:35.930-0700 [TRACE] waypoint: starting interrupt listener for context cancellation
2023-08-25T12:20:35.931-0700 [TRACE] waypoint: interrupt listener goroutine started
2023-08-25T12:20:35.931-0700 [DEBUG] waypoint: home configuration directory: path=/Users/dmai/Library/Preferences/waypoint
2023-08-25T12:20:35.933-0700 [TRACE] waypoint: no API client provided, initializing connection if possible
2023-08-25T12:20:35.933-0700 [TRACE] waypoint.server: Local server may be created later - server credentials optional
2023-08-25T12:20:35.933-0700 [INFO]  waypoint.server: attempting to source credentials and connect
2023-08-25T12:20:36.365-0700 [INFO]  waypoint.serverclient: utilizing credentials fetched via oauth for server auth: oauth-url=https://auth.hashicorp.com/oauth/token oauth-client-id=EqkN5ytsqCVL1ADFCyy4wsX5YyHNebzf
2023-08-25T12:20:36.365-0700 [DEBUG] waypoint.serverclient: connection information: address=api.hashicorp.cloud:443 tls=true tls_skip_verify=false send_auth=true has_token=true
2023-08-25T12:20:36.689-0700 [DEBUG] waypoint.server: connection established with sourced credentials
2023-08-25T12:20:36.689-0700 [TRACE] waypoint: requesting version info from server
2023-08-25T12:20:36.794-0700 [INFO]  waypoint: server version info: version="HCP v0.12.0" api_min=1 api_current=1 entrypoint_min=1 entrypoint_current=1
2023-08-25T12:20:36.794-0700 [INFO]  waypoint: negotiated api version: version=1
2023-08-25T12:20:36.794-0700 [DEBUG] waypoint: will operate on app: name=app0
2023-08-25T12:20:36.795-0700 [DEBUG] waypoint.setupLocalJobSystem: Running this command: git -C /Users/dmai/duy/tmp/waypoint rev-parse --show-toplevel
2023-08-25T12:20:36.970-0700 [DEBUG] waypoint.setupLocalJobSystem: Running this command: git -C /Users/dmai/duy/tmp/waypoint status --porcelain
2023-08-25T12:20:37.025-0700 [DEBUG] waypoint.setupLocalJobSystem: Running this command: git -C /Users/dmai/duy/tmp/waypoint remote show origin
2023-08-25T12:20:37.520-0700 [DEBUG] waypoint.setupLocalJobSystem: Running this command: git -C /Users/dmai/duy/tmp/waypoint diff --quiet origin/main
2023-08-25T12:20:37.569-0700 [DEBUG] waypoint.setupLocalJobSystem: result: isLocal=false
2023-08-25T12:20:37.569-0700 [DEBUG] waypoint: queueing job: operation="*gen.Job_Up"
2023-08-25T12:20:37.714-0700 [DEBUG] waypoint: opening job stream: job_id=01H8Q28BHHT2KNWHW3VCPB0ED8
2023-08-25T12:20:40.899-0700 [DEBUG] waypoint: Executing operation with on-demand runner from profile: job_id=01H8Q28BHHT2KNWHW3VCPB0ED8 runner_profile_id=01H8JNQMQE1TGBJYA0EQQKXKBE
2023-08-25T12:20:41.017-0700 [DEBUG] waypoint: downloading from git: job_id=01H8Q28BHHT2KNWHW3VCPB0ED8 commit=5ed97a924c1533b3e3085a7f8e2733c1f4bd9bcd timestamp="2023-08-25 17:45:01 +0000 UTC"
  message=
  | update

  Performing operation on "docker" with runner profile "docker-01H8JNQF38TP6Z86SEKAV90D4A"

» Cloning data from Git
         URL: https://github.com/xxx/waypoint.git
  Git Commit: 5ed97a924c1533b3e3085a7f8e2733c1f4bd9bcd
   Timestamp: 2023-08-25 17:45:01 +0000 UTC
     Message: update


» Building app0...
✓ Running build v7
✓ null odr build complete
✓ Running push build v7

» Deploying app0...
✓ Running deploy v72023-08-25T12:20:45.797-0700 [WARN]  waypoint: job failed: job_id=01H8Q28BHHT2KNWHW3VCPB0ED8 code=Unknown
✓ Running build v7
✓ null odr build complete
✓ Running push build v7

» Deploying app0...
✓ Running deploy v7
! 1 error occurred:
  	* argument cannot be satisfied: type: *opaqueany.Any (subtype: docker.Image).
  This is a bug in the go-argmapper library since this shouldn't happen at this
  point.


2023-08-25T12:20:45.798-0700 [TRACE] waypoint: stopping signal listeners and cancelling the context
2023-08-25T12:20:45.798-0700 [WARN]  waypoint: context cancelled, stopping interrupt listener loop

Expected behavior
Should run without error.

Waypoint Platform Versions

  • Waypoint CLI Version: v0.11.4
  • Waypoint Server Platform and Version: HCP v0.12.0
  • Waypoint Plugin: exec
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant