Skip to content

Commit

Permalink
Fixed build issues in release artifact (#1295)
Browse files Browse the repository at this point in the history
* Fixed missing BUILD file from release artifact

* Addressed additional issues in release artifact
  • Loading branch information
UebelAndre authored Apr 26, 2022
1 parent 48bb32f commit 26fa5a1
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 12 deletions.
1 change: 1 addition & 0 deletions crate_universe/tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
filegroup(
name = "distro",
srcs = [
"BUILD.bazel",
"//crate_universe/tools/cross_installer:distro",
"//crate_universe/tools/urls_generator:distro",
],
Expand Down
6 changes: 4 additions & 2 deletions crate_universe/tools/cross_installer/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ cross_binary(name = "cross")

filegroup(
name = "distro",
srcs = [
srcs = glob([
"**/*.rs",
"**/*.toml",
]) + [
"BUILD.bazel",
"Cargo.toml",
"cross_installer_deps.bzl",
],
visibility = ["//crate_universe/tools:__pkg__"],
Expand Down
4 changes: 3 additions & 1 deletion crate_universe/tools/urls_generator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ exports_files(

filegroup(
name = "distro",
srcs = [
srcs = glob([
"**/*.rs",
]) + [
"BUILD.bazel",
"Cargo.toml",
],
Expand Down
1 change: 1 addition & 0 deletions util/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sh_binary(
name = "fetch_shas",
srcs = ["fetch_shas.sh"],
tags = ["manual"],
)

filegroup(
Expand Down
7 changes: 4 additions & 3 deletions util/import/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_cc//cc:defs.bzl", "cc_binary")
load("//rust:defs.bzl", "rust_library", "rust_proc_macro", "rust_test")

# buildifier: disable=bzl-visibility
Expand Down Expand Up @@ -70,20 +71,20 @@ config_setting(
},
)

sh_binary(
cc_binary(
name = "fake_import_macro_impl",
srcs = ["fake_import_macro_impl.sh"],
srcs = ["fake_import_macro_impl.cc"],
)

filegroup(
name = "distro",
srcs = glob([
"*.bzl",
"**/*.rs",
"**/*.cc",
]) + [
"//util/import/raze:srcs",
"//util/import/raze/remote:srcs",
"fake_import_macro_impl.sh",
"BUILD.bazel",
],
visibility = ["//:__subpackages__"],
Expand Down
5 changes: 5 additions & 0 deletions util/import/fake_import_macro_impl.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//! A noop import macro handler.

int main(int argc, char** argv) {
return 0;
}
3 changes: 0 additions & 3 deletions util/import/fake_import_macro_impl.sh

This file was deleted.

5 changes: 2 additions & 3 deletions util/process_wrapper/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ rust_test(
filegroup(
name = "distro",
srcs = glob([
"**/*.bazel",
"**/*.cc",
"**/*.rs",
]) + [
"BUILD.bazel",
],
]),
visibility = ["//:__subpackages__"],
)

0 comments on commit 26fa5a1

Please sign in to comment.