Sign in

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

vole
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

A free and open-source forge that lives in your Git repo.

refactor

c5902451905acdaa478f8476844ccd4a510d9ca9 · Keenan Nemetz · 17d ago · parent ec2aba4b

internal/server/lfs_scope.go → server/lfs_scope.go +5−5

@@ -13,8 +13,8 @@ import (
13 13 "os"
14 14 "time"
15 15
16 "github.com/rodent-software/vole/internal/gc"
17 "github.com/rodent-software/vole/internal/runs"
16 "github.com/rodent-software/vole/ci/runs"
17 "github.com/rodent-software/vole/forge"
18 18 )
19 19
20 20 // scopeLFSStore links an unscoped store into per-repository namespaces, in the
@@ -33,9 +33,9 @@ func (s *Server) scopeLFSStore() {
33 33 if len(repos) == 0 {
34 34 return
35 35 }
36 scan := make([]gc.Repo, 0, len(repos))
36 scan := make([]forge.GCRepo, 0, len(repos))
37 37 for _, m := range repos {
38 scan = append(scan, gc.Repo{Name: m.Name, Dir: m.Dir})
38 scan = append(scan, forge.GCRepo{Name: m.Name, Dir: m.Dir})
39 39 }
40 40 // Run logs and artifacts are roots too, and they belong to the repository whose
41 41 // run produced them.
@@ -55,7 +55,7 @@ func (s *Server) scopeLFSStore() {
55 55 rn.Close()
56 56 }
57 57 }
58 res, err := gc.Link(gc.Options{Repos: scan, Store: s.LFS, RunOIDs: runOIDs})
58 res, err := forge.GCLink(forge.GCOptions{Repos: scan, Store: s.LFS, RunOIDs: runOIDs})
59 59 if err != nil {
60 60 s.Log.Error("lfs: the store could not be linked to repositories; "+
61 61 "objects stay unfetchable until `vole gc` succeeds", "err", err)