Skip to content

Commit

Permalink
feat: use archives for downloading GH templates (#198)
Browse files Browse the repository at this point in the history
Uses the new functionality added in
[jaredallard/[email protected]](https://github.com/jaredallard/vcs/releases/tag/v0.3.0)
to support
downloading templates using archives instead of git clone. This is a
best-effort approach, if this fails then git clone will be falled back
to.
  • Loading branch information
jaredallard authored Dec 22, 2024
1 parent 3812687 commit 8ddf52b
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 24 deletions.
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module go.rgst.io/stencil

go 1.23
go 1.23.4

require (
github.com/Masterminds/semver/v3 v3.3.1
Expand All @@ -16,7 +16,7 @@ require (
github.com/hashicorp/go-plugin v1.6.2
github.com/jaredallard/archives v1.0.0
github.com/jaredallard/cmdexec v1.2.1
github.com/jaredallard/vcs v0.2.0
github.com/jaredallard/vcs v0.4.0
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/pkg/errors v0.9.1
github.com/princjef/gomarkdoc v1.1.0
Expand Down Expand Up @@ -49,7 +49,7 @@ require (
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-github/v63 v63.0.0 // indirect
github.com/google/go-github/v67 v67.0.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
Expand Down Expand Up @@ -82,9 +82,9 @@ require (
github.com/spf13/cast v1.7.0 // indirect
github.com/ulikunitz/xz v0.5.12 // indirect
github.com/x-cray/logrus-prefixed-formatter v0.5.2 // indirect
github.com/xanzy/go-gitlab v0.115.0 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
gitlab.com/gitlab-org/api/client-go v0.118.0 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/exp v0.0.0-20241210194714-1829a127f884 // indirect
golang.org/x/net v0.32.0 // indirect
Expand All @@ -95,7 +95,7 @@ require (
golang.org/x/time v0.8.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect
google.golang.org/grpc v1.69.0 // indirect
google.golang.org/protobuf v1.35.2 // indirect
google.golang.org/protobuf v1.36.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
mvdan.cc/xurls/v2 v2.5.0 // indirect
)
20 changes: 10 additions & 10 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go 1.23
go 1.23.4

use .

Expand Down
Loading

0 comments on commit 8ddf52b

Please sign in to comment.