| ... | @@ -47,20 +47,17 @@ | ... | @@ -47,20 +47,17 @@ |
| 47 | | 47 | |
| 48 | // Specifies the set of files and directories that are included in this package. | 48 | // Specifies the set of files and directories that are included in this package. |
| 49 | // Only files and directories listed here are included in the `hash` that | 49 | // Only files and directories listed here are included in the `hash` that |
| 50 | // is computed for this package. | 50 | // is computed for this package. Only files listed here will remain on disk |
| | 51 | // when using the zig package manager. As a rule of thumb, one should list |
| | 52 | // files required for compilation plus any license(s). |
| 51 | // Paths are relative to the build root. Use the empty string (`""`) to refer to | 53 | // Paths are relative to the build root. Use the empty string (`""`) to refer to |
| 52 | // the build root itself. | 54 | // the build root itself. |
| 53 | // A directory listed here means that all files within, recursively, are included. | 55 | // A directory listed here means that all files within, recursively, are included. |
| 54 | .paths = .{ | 56 | .paths = .{ |
| 55 | // This makes *all* files, recursively, included in this package. It is generally | 57 | "build.zig", |
| 56 | // better to explicitly list the files and directories instead, to insure that | 58 | "build.zig.zon", |
| 57 | // fetching from tarballs, file system paths, and version control all result | 59 | "src", |
| 58 | // in the same contents hash. | | |
| 59 | "", | | |
| 60 | // For example... | 60 | // For example... |
| 61 | //"build.zig", | | |
| 62 | //"build.zig.zon", | | |
| 63 | //"src", | | |
| 64 | //"LICENSE", | 61 | //"LICENSE", |
| 65 | //"README.md", | 62 | //"README.md", |
| 66 | }, | 63 | }, |