-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Rule Check: CopyIgnoredFiles #5135
Conversation
735cbb4
to
d099d2d
Compare
Description: "File is ignored by .dockerignore", | ||
URL: "", | ||
Format: func(file string) string { | ||
return fmt.Sprintf("File %q is ignored by .dockerignore", file) |
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.
Ideally we could show the pattern that causes the issue but that might be tricky with current libs so can be left for follow-ups.
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.
Updated with more detail, and added the needs/follow-up flag. :)
87cb599
to
a8116c6
Compare
c5f2f48
to
92e5431
Compare
1882905
to
1986a33
Compare
9fa8d35
to
f52fe0b
Compare
71ac772
to
2abe516
Compare
277848b
to
0783fd2
Compare
0783fd2
to
e1f442b
Compare
|
…terns Signed-off-by: Talon Bowler <[email protected]> Signed-off-by: Tonis Tiigi <[email protected]>
e1f442b
to
07fe324
Compare
Trying to COPY/ADD files excluded by dockerignore will cause the build to fail because they are missing from the context. This adds a rule check to catch this case.