Commit 2a0d760
authored
Exclude unnecessary files from local Pack CLI builds (#258)
Exclude unnecessary files from images when building locally with
`pack build`, where `.gitignore` doesn't apply.
See:
- https://buildpacks.io/docs/for-app-developers/how-to/build-inputs/use-project-toml/
- https://buildpacks.io/docs/reference/config/project-descriptor/#iobuildpacks-table-optional
- https://github.com/buildpacks/spec/blob/main/extensions/project-descriptor.md#iobuildpacksinclude-optional-and-iobuildpacksexclude-optional
Note: We have to omit trailing slashes from entries that are
directories due to this upstream bug:
buildpacks/pack#2402
GUS-W-18705417.1 parent 461f1ac commit 2a0d760
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments