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

Fix bundle run when run interactively #1880

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Nov 4, 2024

Changes

The commit where resource lookup was factored out into a separate package (#1858) didn't take into account the use of args further down in the code.

This change fixes that oversight by returning the tail arguments when determining which resource to run. The later call no longer has to index the args slice.

Tests

Manually confirmed that the command works when being prompted for the resource to run.

The commit where resource lookup was factored out into a separate package
didn't take into account the use of `args` further down in the code.

This change fixes that oversight by returning the tail arguments when figuring
out which resource to run. The later call now no longer has to index the `args`
slice.
Copy link

github-actions bot commented Nov 4, 2024

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 1880
  • Commit SHA: 1c63ee959282813d6e1a2d70b38ac5051faf4a69

Checks will be approved automatically on success.

@pietern pietern temporarily deployed to test-trigger-is November 4, 2024 19:26 — with GitHub Actions Inactive
@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/11671262099

@pietern pietern enabled auto-merge November 4, 2024 19:28
@pietern
Copy link
Contributor Author

pietern commented Nov 4, 2024

FWIW, I missed this in the other PR and we don't have a test to confirm the interactive behavior.

@pietern pietern added this pull request to the merge queue Nov 5, 2024
Merged via the queue into main with commit edff68c Nov 5, 2024
10 checks passed
@pietern pietern deleted the bundle-fix-interactive-run branch November 5, 2024 09:35
andrewnester added a commit that referenced this pull request Nov 6, 2024
CLI:
 * Clean host URL in the `auth login` command ([#1879](#1879)).

Bundles:
 * Fix bundle run when run interactively ([#1880](#1880)).
 * Fix relative path resolution for dashboards on Windows ([#1881](#1881)).

Internal:
 * Address goreleaser deprecation warning ([#1872](#1872)).
 * Update actions/github-script to v7 ([#1873](#1873)).
 * Use Go 1.23 ([#1871](#1871)).
 * [Internal] Always write message for manual integration test trigger ([#1874](#1874)).
 * Add `cmd-exec-id` to user agent ([#1808](#1808)).
 * Added E2E test to run Python wheels on interactive cluster created in bundle ([#1864](#1864)).

Dependency updates:
 * Bump github.com/hashicorp/terraform-json from 0.22.1 to 0.23.0 ([#1877](#1877)).
github-merge-queue bot pushed a commit that referenced this pull request Nov 6, 2024
CLI:
* Clean host URL in the `auth login` command
([#1879](#1879)).

Bundles:
* Fix bundle run when run interactively
([#1880](#1880)).
* Fix relative path resolution for dashboards on Windows
([#1881](#1881)).

Internal:
* Address goreleaser deprecation warning
([#1872](#1872)).
* Update actions/github-script to v7
([#1873](#1873)).
 * Use Go 1.23 ([#1871](#1871)).
* [Internal] Always write message for manual integration test trigger
([#1874](#1874)).
* Add `cmd-exec-id` to user agent
([#1808](#1808)).
* Added E2E test to run Python wheels on interactive cluster created in
bundle ([#1864](#1864)).


Dependency updates:
* Bump github.com/hashicorp/terraform-json from 0.22.1 to 0.23.0
([#1877](#1877)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants