-
Notifications
You must be signed in to change notification settings - Fork 49
docker-runtime: Use single quotes in bash env file template #176
Conversation
Pull Request Test Coverage Report for Build 2137
💛 - Coveralls |
Are tests expected to pass? I get the same lint failures on master. @sargun does master pass for you? |
I know that linting has hit some issues temporarily. I think rob G. Will
look at it when he’s back. What’s the urgency of the change?
…Sent from my iPhone
On Sep 14, 2018, at 23:02, cHYzZQo <notifications@github.com> wrote:
Are tests expected to pass? I get the same lint failures on master. @sargun
<https://github.com/sargun> does master pass for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#176 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAtyRN44ugmEH6tFdAiFCgxxsWdRlq1yks5ubJgMgaJpZM4WqNq2>
.
|
Not urgent, just wanted to make sure it wasn't something i missing. Thanks |
Using single quotes ensures that values are exported as literal values and not evaluated. Also escapes any single quotes in the value.
Codecov Report
@@ Coverage Diff @@
## master #176 +/- ##
===========================================
- Coverage 33.36% 22.89% -10.47%
===========================================
Files 66 66
Lines 7876 7878 +2
===========================================
- Hits 2628 1804 -824
- Misses 4928 5861 +933
+ Partials 320 213 -107
|
Rebased now that the linting fixes are in. |
@cHYzZQo Are you ready for review? |
Yes |
lgtm. |
@cHYzZQo This looks good to me, but the one thing that might be valuable is to see is '$' is in the string, and fall back to the old behaviour. I don't think anyone is doing string interpolation, but might as well shield ourselves? |
Is that really what we want? I don't think that would have ever worked well because 1) the initial environment wouldn't do any interpolation so it makes the initial environment that entrypoint is running under and the environment after But if you are sure you want it i'll add it in. |
@cHYzZQo Makes sense. This looks good to me. @rgulewich do you want to take a look as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Using single quotes ensures that values are exported as literal values and not evaluated. Also escapes any single quotes in the value.