chore: cleanup after gazelle, it's a lil dirty

This commit is contained in:
41666 2020-09-15 23:32:39 -04:00
parent bb83575308
commit c40961b1b2
2 changed files with 8 additions and 5 deletions

View file

@ -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",

View file

@ -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
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