Skip to content

Commit

Permalink
go_netrc: switch back to gazelle style import (#472)
Browse files Browse the repository at this point in the history
This enables other projects to depend on bazelisk using a gazelle
generated go_repository for com_github_bgentry_go_netrc, instead of
having to use the archive strip_prefix go_repository that Bazelisk
handcrafted.
  • Loading branch information
sluongng authored Jul 10, 2023
1 parent d0e93d2 commit 9943f12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ go_repository(

go_repository(
name = "com_github_bgentry_go_netrc",
importpath = "github.com/bgentry/go-netrc/netrc",
urls = ["https://github.com/bgentry/go-netrc/archive/9fd32a8.zip"],
type = "zip",
strip_prefix = "go-netrc-9fd32a8b3d3d3f9d43c341bfe098430e07609480/netrc",
importpath = "github.com/bgentry/go-netrc",
sum = "h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas=",
version = "v0.0.0-20140422174119-9fd32a8b3d3d",
)

go_rules_dependencies()
Expand Down
2 changes: 1 addition & 1 deletion httputil/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ go_library(
importpath = "github.com/bazelbuild/bazelisk/httputil",
visibility = ["//visibility:public"],
deps = [
"@com_github_bgentry_go_netrc//:go_default_library",
"@com_github_bgentry_go_netrc//netrc:go_default_library",
"@com_github_mitchellh_go_homedir//:go_default_library",
],
)
Expand Down

0 comments on commit 9943f12

Please sign in to comment.