Skip to content

Fix bundle run when run interactively - #1880

Merged
pietern merged 1 commit into
mainfrom
bundle-fix-interactive-run
Nov 5, 2024
Merged

Fix bundle run when run interactively#1880
pietern merged 1 commit into
mainfrom
bundle-fix-interactive-run

Conversation

@pietern

Copy link
Copy Markdown
Contributor

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.
@github-actions

Copy link
Copy Markdown
Contributor

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.

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Test Details: go/deco-tests/11671262099

@pietern
pietern enabled auto-merge November 4, 2024 19:28
@pietern

Copy link
Copy Markdown
ContributorAuthor

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 queueNov 5, 2024
Merged via the queue into main with commit edff68cNov 5, 2024
@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-queueBot 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)).
denik pushed a commit that referenced this pull request May 20, 2026
## 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.
denik pushed a commit that referenced this pull request May 20, 2026
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 freeto 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

@pietern@eng-dev-ecosystem-bot@andrewnester