Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Run script allows empty docker_args #2053

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

illicitonion
Copy link
Contributor

Currently when using bazel run on a docker image, I get:

/[redacted].executable: line 281: docker_args[@]: unbound variable

Alternatively, we could just set +u before execing docker.

container/incremental_load.sh.tpl Outdated Show resolved Hide resolved
container/incremental_load.sh.tpl Outdated Show resolved Hide resolved
Currently when using `bazel run` on a docker image, I get:
```
/[redacted].executable: line 281: docker_args[@]: unbound variable
```

Alternatively, we could just `set +u` before execing docker.
@illicitonion
Copy link
Contributor Author

Thanks for the review @mindaugasrukas - updated, PTAL!

Copy link
Contributor

@mindaugasrukas mindaugasrukas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@linzhp linzhp merged commit 8cf7db7 into bazelbuild:master Apr 19, 2022
St0rmingBr4in pushed a commit to St0rmingBr4in/rules_docker that referenced this pull request Oct 17, 2022
Currently when using `bazel run` on a docker image, I get:
```
/[redacted].executable: line 281: docker_args[@]: unbound variable
```

Alternatively, we could just `set +u` before execing docker.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants