vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Publish a directory declaration as a tree
4f8a3da8f7801735ab7ab719b3fda3f39cb7e070 · Keenan Nemetz · 19d ago · parent 5f2a0b0a
Publish a directory declaration as a tree A workflow artifact path with no glob that names a directory now publishes every regular file under it, relative to that directory. `dist` gives `apt/Packages` and `yum/repodata/repomd.xml`; `dist/apt` gives `Packages`. A glob keeps the static-root rule, and `.` is refused so a declaration cannot accidentally publish the whole checkout. This matches `vole release attach <tag> <dir>` and removes the need for depth-specific globs or a staging copy when a build already has a package tree. Refs: 01M7BPH6RRPK2934FCHVJPQNGY
ci/validate_test.go +2−2
| @@ -64,13 +64,13 @@ func TestValidObjectID(t *testing.T) { | |||
| 64 | 64 | ||
| 65 | 65 | func TestValidateArtifactPath(t *testing.T) { | |
| 66 | 66 | t.Parallel() | |
| 67 | for _, ok := range []string{"dist/*", "dist/*.tar.gz", "build/app", "a/b/c.txt"} { | ||
| 67 | for _, ok := range []string{"dist/*", "dist/*.tar.gz", "build/app", "a/b/c.txt", "dist", "build"} { | ||
| 68 | 68 | if err := ValidateArtifactPath(ok); err != nil { | |
| 69 | 69 | t.Fatalf("ValidateArtifactPath(%q) = %v", ok, err) | |
| 70 | 70 | } | |
| 71 | 71 | } | |
| 72 | 72 | for _, bad := range []string{ | |
| 73 | "", "/etc/passwd", "../secret", "a/../../b", "dist/", "**/*.go", "a[b", | ||
| 73 | "", ".", "/etc/passwd", "../secret", "a/../../b", "dist/", "**/*.go", "a[b", | ||
| 74 | 74 | } { | |
| 75 | 75 | if err := ValidateArtifactPath(bad); err == nil { | |
| 76 | 76 | t.Fatalf("ValidateArtifactPath(%q) = nil", bad) | |