From 9943f1249b493d80333b19bf7132f7f7221ce174 Mon Sep 17 00:00:00 2001 From: Son Luong Ngoc Date: Mon, 10 Jul 2023 19:13:17 +0200 Subject: [PATCH] go_netrc: switch back to gazelle style import (#472) 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. --- WORKSPACE | 7 +++---- httputil/BUILD | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 43042435..73033ce1 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -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() diff --git a/httputil/BUILD b/httputil/BUILD index d48f2902..4c7ac896 100644 --- a/httputil/BUILD +++ b/httputil/BUILD @@ -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", ], )