Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

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 release and run artifacts as file trees

5f2a0b0a7f84ec1bb43af5213e5c788039b72222 · Keenan Nemetz · 20d ago · parent 6d574bec

Publish release and run artifacts as file trees

Release pointers and run outputs are now slash-separated paths. A flat name is
a one-segment path, so every existing release, pointer, URL, and workflow that
uses dist/* keeps working.

- metadata validates artifact paths, lists and loads them recursively, and
  refuses a tag that would make the tag/path boundary ambiguous
- vole release attach keeps a directory's relative paths; a plain file keeps its
  base name
- a workflow match is published relative to the declaration's static root, so
  dist/* stays flat while dist/*/* keeps one directory level
- release and run download routes accept nested paths; Content-Disposition still
  saves the base name
- one internal rule is shared by the pointer writer, metadata validator, run
  record, CLI, and routes so they cannot disagree

Refs: 01M7BPH6RRPK2934FCHVJPQNGY

server/routes.go +2−2

@@ -209,7 +209,7 @@ func (s *Server) repoRoutes(mux *http.ServeMux) {
209 209 mux.HandleFunc("GET /{name}/releases/{tag...}", w.ReleaseView)
210 210 mux.HandleFunc("GET /{name}/releases/{tag}/archive.tar", w.ReleaseTar)
211 211 mux.HandleFunc("GET /{name}/releases/{tag}/archive.tar.gz", w.ReleaseTarGz)
212 mux.HandleFunc("GET /{name}/releases/{tag}/artifacts/{artifact}", w.ReleaseArtifact)
212 mux.HandleFunc("GET /{name}/releases/{tag}/artifacts/{path...}", w.ReleaseArtifact)
213 213
214 214 // CI: the run list and one run with its log and artifacts. Cancel and rerun
215 215 // are the only writes.
@@ -220,7 +220,7 @@ func (s *Server) repoRoutes(mux *http.ServeMux) {
220 220 mux.HandleFunc("POST /{name}/runs/{id}/cancel", w.CancelRun)
221 221 mux.HandleFunc("POST /{name}/runs/{id}/rerun", w.Rerun)
222 222 mux.HandleFunc("GET /{name}/runs/{id}/log", w.RunLog)
223 mux.HandleFunc("GET /{name}/runs/{id}/artifacts/{artifact}", w.RunArtifact)
223 mux.HandleFunc("GET /{name}/runs/{id}/artifacts/{path...}", w.RunArtifact)
224 224
225 225 // Locks and settings. Settings carries both the repository's own settings
226 226 // and, for an instance admin, the access rules.