Skip to content

Commit

Permalink
Add major version suffix download example
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswuollett committed May 1, 2023
1 parent 6637ea8 commit 45d748f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/go_repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ go_repository(
strip_prefix = "errors-816c9085562cd7ee03e7f8188a1cfd942858cded",
type = "zip",
)
# Download major version suffixed via git
go_repository(
name = "com_github_thediveo_enumflag_v2",
commit = "0217df583bf3d37b92798602e5061b36556bcd38",
importpath = "github.com/thediveo/enumflag/v2",
remote = "https://github.com/thediveo/enumflag",
vcs = "git",
)
```
"""
Expand Down
9 changes: 9 additions & 0 deletions repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,15 @@ go_repository(
strip_prefix = "errors-816c9085562cd7ee03e7f8188a1cfd942858cded",
type = "zip",
)

# Download major version suffixed via git
go_repository(
name = "com_github_thediveo_enumflag_v2",
commit = "0217df583bf3d37b92798602e5061b36556bcd38",
importpath = "github.com/thediveo/enumflag/v2",
remote = "https://github.com/thediveo/enumflag",
vcs = "git",
)
```


Expand Down

0 comments on commit 45d748f

Please sign in to comment.