diff --git a/deps.bzl b/deps.bzl index 20fd4f2..b5fd6e3 100644 --- a/deps.bzl +++ b/deps.bzl @@ -19,7 +19,6 @@ def go_repositories(): sum = "h1:qet1QNfXsQxTZqLG4oE62mJzwPIB8+Tee4RNCL9ulrY=", version = "v0.0.0-20151022065526-2efee857e7cf", ) - go_repository( name = "com_github_armon_consul_api", importpath = "github.com/armon/consul-api", @@ -152,7 +151,6 @@ def go_repositories(): sum = "h1:ds9HENceKzpGBgCRlkZNq6TqBIegwKcF3e5reuV9Z0M=", version = "v0.4.3", ) - go_repository( name = "com_github_fsnotify_fsnotify", importpath = "github.com/fsnotify/fsnotify", @@ -513,14 +511,12 @@ def go_repositories(): sum = "h1:YZcsG11NqnK4czYLrWd9mpEuAJIHVQLwdrleYfszMAA=", version = "v0.7.1", ) - go_repository( name = "com_github_rogpeppe_fastuuid", importpath = "github.com/rogpeppe/fastuuid", sum = "h1:gu+uRPtBe88sKxUCEXRoeCvVG90TJmwhiqRpvdhQFng=", version = "v0.0.0-20150106093220-6724a57986af", ) - go_repository( name = "com_github_rs_cors", importpath = "github.com/rs/cors", diff --git a/hack/gazelle.sh b/hack/gazelle.sh index bee6c4e..9676b70 100755 --- a/hack/gazelle.sh +++ b/hack/gazelle.sh @@ -1,4 +1,11 @@ #!/bin/sh +cd `dirname $(realpath $0)` + bazel run //:gazelle -bazel run //:gazelle -- update-repos -from_file=./go.mod --to_macro=deps.bzl%go_repositories -prune=true \ No newline at end of file +bazel run //:gazelle -- update-repos -from_file=./go.mod --to_macro=deps.bzl%go_repositories -prune=true + +echo "Fixing deps.bzl..." +head -n2 ../deps.bzl > ../deps.bzl~ +tail -n+3 ../deps.bzl | sed '/^$/d' >> ../deps.bzl~ +mv ../deps.bzl~ ../deps.bzl \ No newline at end of file