You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attaching to good_1, bad_1
good_1 | HAPPY
good_1 exited with code 0
bad_1 | venv/bin/activate: line 31: $1: unbound variable
bad_1 exited with code 1
The output above shows that if the $1 is not replaced with ${1:-} (the latter of which tolerates missing parameters), then the call to deactivate fails with an error.
The text was updated successfully, but these errors were encountered:
A very similar bug was fixed: #1029
The error that I'm getting is this:
This is the same kind of error, except it exists in deactivate instead of activate
To Reproduce
The Setup
In order to insulate against local system differences, this test runs in two containers, only one of which has the problem.
You'll need docker-compose installed, two directories, and three files:
bad/Dockerfile
(this one has the problem)good/Dockerfile
(in this one I've fixed the problem)docker-compose.yml
(this runs the test)The Test
Run:
docker-compose up
Output:
The output above shows that if the
$1
is not replaced with${1:-}
(the latter of which tolerates missing parameters), then the call to deactivate fails with an error.The text was updated successfully, but these errors were encountered: