diff --git a/_example/releases.conf b/_example/releases.conf new file mode 100644 index 0000000..ac9ffbe --- /dev/null +++ b/_example/releases.conf @@ -0,0 +1,5 @@ +# Example releases.conf — uses ripgrep as a sample project. +# Copy this file into your package directory and adjust. +source = github +owner = BurntSushi +repo = ripgrep diff --git a/cmd/fetchraw/main.go b/cmd/fetchraw/main.go index 95a9f68..960bc6f 100644 --- a/cmd/fetchraw/main.go +++ b/cmd/fetchraw/main.go @@ -105,6 +105,10 @@ func discover(dir string) ([]pkgConf, error) { var packages []pkgConf for _, path := range matches { name := filepath.Base(filepath.Dir(path)) + // Skip infrastructure dirs (_example, _webi, _common, etc.) + if strings.HasPrefix(name, "_") { + continue + } conf, err := installerconf.Read(path) if err != nil { log.Printf("warning: %s: %v", path, err)