Skip to content

Clarify ENV non-recursivenes w.r.t. env var substitution + fix escaping - #10431

Merged
tiborvass merged 1 commit into
moby:masterfrom
duglin:Issue10391
Mar 23, 2015
Merged

tiborvass merged 1 commit into
moby:masterfrom
duglin:Issue10391

Conversation

@duglin

@duglin duglin commented Jan 29, 2015

Copy link
Copy Markdown
Contributor

Fix some escaping in ENVs and clarify that ENV is not recursive

Closes #10391

Support for #8667 will be done in a new PR.

Signed-off-by: Doug Davis [email protected]

Comment thread builder/evaluator.go Outdated

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.

let's just delete this line, with maybe a comment at the top instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@duglin
duglin force-pushed the Issue10391 branch 2 times, most recently from a87cf66 to 0a5475a Compare January 29, 2015 16:34
@SvenDowideit

Copy link
Copy Markdown
Contributor

is this a docs first proposal? :)

@duglin

duglin commented Jan 29, 2015

Copy link
Copy Markdown
Contributor Author

I like to think of it as a bug fix. 😄

-Doug

Sent from my iPhone

On Jan 29, 2015, at 5:11 PM, Sven Dowideit [email protected] wrote:

is this a docs first proposal? :)

—
Reply to this email directly or view it on GitHub.

@duglin
duglin force-pushed the Issue10391 branch 2 times, most recently from 06dc62b to a9f5ce8 Compare January 30, 2015 02:15
@duglin

duglin commented Jan 30, 2015

Copy link
Copy Markdown
Contributor Author

ping @erikh any thoughts on this?

@erikh

erikh commented Jan 30, 2015

Copy link
Copy Markdown
Contributor

I'm going to gracefully dodge this and punt to @crosbymichael instead

@crosbymichael

Copy link
Copy Markdown
Contributor

Erik!! noooo

@erikh

erikh commented Jan 31, 2015

Copy link
Copy Markdown
Contributor

@duglin

duglin commented Jan 31, 2015

Copy link
Copy Markdown
Contributor Author

hmmm is that supposed to be @erikh in the background? That guy jumping up and down? :-)

@duglin

duglin commented Feb 3, 2015

Copy link
Copy Markdown
Contributor Author

@erikh @crosbymichael not sure how to make progress on this one. Seems like it would be a nice addition to have this and I think its what users would expect.

@tiborvass

Copy link
Copy Markdown
Contributor

@duglin do we really need this?

The user can very well just add another ENV instruction.

@duglin

duglin commented Feb 6, 2015

Copy link
Copy Markdown
Contributor Author

Once we added support for multiple var=value's per ENV statement, people expected it to act like it does on the cmd line. Since its not a huge imposition for us to support it I think we should. If it required us to hack stuff then I would question its value, but that's not the case.

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.

@duglin envCount++ :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

changed

@duglin

duglin commented Feb 10, 2015

Copy link
Copy Markdown
Contributor Author

Any more thoughts on this one?
@jfrazelle @crosbymichael @tiborvass

@tiborvass

Copy link
Copy Markdown
Contributor

Fine... design OK.

@jessfraz

Copy link
Copy Markdown
Contributor

deisgn ok, still not sure that it entirely necessary but ok 😈

@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

@thockin

thockin commented Feb 19, 2015

Copy link
Copy Markdown
Contributor

How does one specify a literal "$" in a value?

@duglin
duglin force-pushed the Issue10391 branch 4 times, most recently from 5e4ebe4 to c262230 Compare March 21, 2015 03:00

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.

grep -q

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Clarify in the docs that ENV is not recursive

Closes moby#10391

Signed-off-by: Doug Davis <[email protected]>
@duglin

duglin commented Mar 23, 2015

Copy link
Copy Markdown
Contributor Author

@tiborvass can we please resolve this one today so it can make 1.6 ?

@tiborvass

Copy link
Copy Markdown
Contributor

Yes. also this is a bug fix so it doesn't have to make it today but I'll
merge it anyways.
On Mon, Mar 23, 2015 at 12:36 PM Doug Davis [email protected]
wrote:

@tiborvass https://github.com/tiborvass can we please resolve this one
today so it can make 1.6 ?

—
Reply to this email directly or view it on GitHub
#10431 (comment).

@jessfraz jessfraz modified the milestones: 1.7.0, 1.6.0 Mar 23, 2015
@jessfraz

Copy link
Copy Markdown
Contributor

If you are going to merge it can it be done in the next hour or so, so it
will be included in the RC for testing

On Mon, Mar 23, 2015 at 10:39 AM, Tibor Vass [email protected]
wrote:

Yes. also this is a bug fix so it doesn't have to make it today but I'll
merge it anyways.
On Mon, Mar 23, 2015 at 12:36 PM Doug Davis [email protected]
wrote:

@tiborvass https://github.com/tiborvass can we please resolve this one
today so it can make 1.6 ?

—
Reply to this email directly or view it on GitHub
#10431 (comment).

—
Reply to this email directly or view it on GitHub
#10431 (comment).

@jessfraz jessfraz added this to the 1.6.0 milestone Mar 23, 2015
@tiborvass

Copy link
Copy Markdown
Contributor

LGTM

tiborvass added a commit that referenced this pull request Mar 23, 2015
Clarify ENV non-recursivenes w.r.t. env var substitution + fix escaping
@tiborvass
tiborvass merged commit 61966d2 into moby:master Mar 23, 2015
@tiborvass

Copy link
Copy Markdown
Contributor

@moxiegirl @SvenDowideit @fredlf If you need to make adjustments, please do so in a new PR, thanks! :)

@duglin

duglin commented Mar 23, 2015

Copy link
Copy Markdown
Contributor Author

@tiborvass thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENV declarations don't inherit values if declared on same line