Skip to content

Run script allows empty docker_args - #2053

Merged
linzhp merged 1 commit into
bazelbuild:masterfrom
illicitonion:fix-run-script
Apr 19, 2022
Merged

Run script allows empty docker_args#2053
linzhp merged 1 commit into
bazelbuild:masterfrom
illicitonion:fix-run-script

Conversation

@illicitonion

Copy link
Copy Markdown
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.

Comment thread container/incremental_load.sh.tpl Outdated
Comment thread container/incremental_load.sh.tpl
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
Copy Markdown
Contributor Author

Thanks for the review @mindaugasrukas - updated, PTAL!

@mindaugasrukas mindaugasrukas left a comment

Copy link
Copy Markdown
Contributor

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 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