Skip to content

Commit

Permalink
Merge pull request #52 from rmohr/release-fixes-prebuilt
Browse files Browse the repository at this point in the history
Additional fixes to make prebuilt binary releaes work
  • Loading branch information
rmohr authored Apr 26, 2023
2 parents b51af1c + d50ac2d commit 0bb8b9e
Show file tree
Hide file tree
Showing 7 changed files with 464 additions and 434 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: gazelle buildifier

deps-update:
bazelisk run //:gazelle -- update-repos -from_file=go.mod -to_macro=deps.bzl%bazeldnf_dependencies
bazelisk run //:gazelle -- update-repos -from_file=go.mod -to_macro=build_deps.bzl%bazeldnf_build_dependencies
bazelisk run //:gazelle

gazelle:
Expand Down
35 changes: 4 additions & 31 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ http_archive(

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("//:build_deps.bzl", "bazeldnf_build_dependencies")
load("//:deps.bzl", "bazeldnf_dependencies", "rpm")

# gazelle:repository_macro deps.bzl%bazeldnf_dependencies
# gazelle:repository_macro build_deps.bzl%bazeldnf_build_dependencies
bazeldnf_build_dependencies()

bazeldnf_dependencies()

go_rules_dependencies()
Expand All @@ -76,33 +79,3 @@ rpm(
"https://storage.googleapis.com/builddeps/2ebb715341b57a74759aff415e0ff53df528c49abaa7ba5b794b4047461fa8d6",
],
)

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")

http_file(
name = "bazeldnf-linux-amd64",
executable = True,
sha256 = "d658a09108bd4c4975aa6bca5372c3a7f72ddcd4abd937f9dc882b5fada57694",
urls = ["https://github.com/rmohr/bazeldnf/releases/download/v0.5.6-rc0/bazeldnf-v0.5.6-rc0-linux-amd64"],
)

http_file(
name = "bazeldnf-linux-arm64",
executable = True,
sha256 = "6ad9a260655bbf7591f52553aaa20436814c1426ae37b1f26e066a257a72890c",
urls = ["https://github.com/rmohr/bazeldnf/releases/download/v0.5.6-rc0/bazeldnf-v0.5.6-rc0-linux-arm64"],
)

http_file(
name = "bazeldnf-darwin-amd64",
executable = True,
sha256 = "487703e29bccf8536df438b0888b5d5381d1b362c3001390a0d70ff3113e8c73",
urls = ["https://github.com/rmohr/bazeldnf/releases/download/v0.5.6-rc0/bazeldnf-v0.5.6-rc0-darwin-amd64"],
)

http_file(
name = "bazeldnf-darwin-arm64",
executable = True,
sha256 = "261b11758afc7ce03568026691f62a78fe63ba6e87d1fc51771d3715eec44bcd",
urls = ["https://github.com/rmohr/bazeldnf/releases/download/v0.5.6-rc0/bazeldnf-v0.5.6-rc0-darwin-arm64"],
)
Loading

0 comments on commit 0bb8b9e

Please sign in to comment.