tangled
alpha
login
or
join now
aottr.dev
/
nox
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
chore: cleanup logs
Alex Ottr
9 months ago
2a241c6d
ec6a7e2f
-7
2 changed files
expand all
collapse all
unified
split
.nox.yaml
internal
gitrepo
memfetch.go
-3
.nox.yaml
reviewed
···
5
5
- "age1nuxu3q9wr5wrd53dj8hj5flhz86q2dpjyuq7agseh0wzwq5t696s2dm0ht"
6
6
statePath: ".nox-state.json"
7
7
defaultRepo: git@github.com:ShorkBytes/nox-secrets.git
8
8
-
secrets:
9
9
-
- encrypted: "secrets/prod.env.age"
10
10
-
output: "secrets/prod.env"
11
8
12
9
apps:
13
10
debug:
-4
internal/gitrepo/memfetch.go
reviewed
···
3
3
import (
4
4
"fmt"
5
5
"io"
6
6
-
"log"
7
6
"os"
8
7
9
8
git "github.com/go-git/go-git/v5"
···
29
28
30
29
func CloneRepoInMemory(opts GitFetchOptions) (*ClonedRepo, error) {
31
30
32
32
-
// log.Printf("🔄 Cloning repo %s (branch: %s)", opts.RepoURL, opts.Branch)
33
33
-
34
31
cloneOpts := &git.CloneOptions{
35
32
URL: opts.RepoURL,
36
33
SingleBranch: true,
···
46
43
}
47
44
}
48
45
if token != nil {
49
49
-
log.Println("🔐 Using token authentication")
50
46
cloneOpts.Auth = &gitHttp.BasicAuth{
51
47
Username: "nox",
52
48
Password: *token,