Monorepo for Tangled tangled.org

appview,knotserver: immutable nix flakeref link header #741

closed opened by boltless.me targeting master from push-ptrrwwvnkmxq
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m4nnmyspof22
+17
Interdiff #5 โ†’ #6
appview/repo/archive.go

This file has not been changed.

appview/repo/router.go

This file has not been changed.

appview/state/git_http.go

This patch was likely rebased, as context lines do not match.

+17
appview/state/proxy_knot.go
··· 31 31 32 32 } 33 33 34 + func (s *State) UploadArchive(w http.ResponseWriter, r *http.Request) { 35 + user, ok := r.Context().Value("resolvedId").(identity.Identity) 36 + if !ok { 37 + http.Error(w, "failed to resolve user", http.StatusInternalServerError) 38 + return 39 + } 40 + repo := r.Context().Value("repo").(*models.Repo) 41 + 42 + scheme := "https" 43 + if s.config.Core.Dev { 44 + scheme = "http" 45 + } 46 + 47 + targetURL := fmt.Sprintf("%s://%s/%s/%s/git-upload-archive?%s", scheme, repo.Knot, user.DID, repo.Name, r.URL.RawQuery) 48 + s.proxyRequest(w, r, targetURL) 49 + } 50 + 34 51 func (s *State) UploadPack(w http.ResponseWriter, r *http.Request) { 35 52 user, ok := r.Context().Value("resolvedId").(identity.Identity) 36 53 if !ok {
appview/state/router.go

This patch was likely rebased, as context lines do not match.

go.mod

This file has not been changed.

go.sum

This file has not been changed.

knotserver/archive.go

This file has not been changed.

knotserver/git/git.go

This file has not been changed.

knotserver/router.go

This patch was likely rebased, as context lines do not match.

knotserver/xrpc/repo_archive.go

This file has not been changed.

knotserver/xrpc/xrpc.go

This file has not been changed.

lexicons/repo/archive.json

This file has not been changed.

nix/gomod2nix.toml

This file has not been changed.

History

7 rounds 2 comments
sign up or login to add to the discussion
2 commits
expand
appview,knotserver: support immutable nix flakeref link header
lexicons,knotserver: remove /xrpc/sh.tangled.repo.archive endpoint
3/3 success
expand
expand 1 comment
closed without merging
2 commits
expand
appview,knotserver: support immutable nix flakeref link header
lexicons,knotserver: remove /xrpc/sh.tangled.repo.archive endpoint
3/3 success
expand
expand 0 comments
3 commits
expand
nix: bump gomod2nix
appview,knotserver: support immutable nix flakeref link header
lexicons,knotserver: remove /xrpc/sh.tangled.repo.archive endpoint
3/3 success
expand
expand 0 comments
3 commits
expand
nix: bump gomod2nix
appview,knotserver: support immutable nix flakeref link header
lexicons,knotserver: remove sh.tangled.repo.archive
2/3 failed, 1/3 success
expand
expand 0 comments
3 commits
expand
appview,knotserver: support knot http endpoint for archive
knotserver: support immutable nix flakeref link header
lexicons,knotserver: remove sh.tangled.repo.archive
3/3 success
expand
expand 0 comments
1 commit
expand
appview,knotserver: immutable nix flakeref link header
3/3 success
expand
expand 0 comments
1 commit
expand
appview,knotserver: immutable nix flakeref link header
1/3 failed, 2/3 timeout
expand
expand 1 comment

link to related issue: #231