-
Notifications
You must be signed in to change notification settings - Fork 285
Fix commandline double quoting for job containers #1207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Irrelevant what image version we use for job containers as there's no container <-> host OS version restraint. | ||
| FROM golang:1.15.10-nanoserver-1809 | ||
|
|
||
| # Get administrator privileges | ||
| USER containeradministrator | ||
|
|
||
| WORKDIR C:\\go\\src\\cmdline | ||
| COPY main.go . | ||
|
|
||
| RUN go get -d -v ./... | ||
| RUN go build -mod=mod |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| package main | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I use this to debug arg parsing issues: Find it a little easier to understand with the numbered args.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you prefer we do this here and check a specific position for the test?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it will make it slightly easier to tell what's going on if something breaks |
||
|
|
||
| import ( | ||
| "fmt" | ||
| "os" | ||
| "strings" | ||
| ) | ||
|
|
||
| func main() { | ||
| fmt.Print(strings.Join(os.Args, " ")) | ||
| } | ||
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.
yay
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.
Ashamed I didn't know of this
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.
Learning is fun though