Skip to content

Commit

Permalink
add missing BUILD file
Browse files Browse the repository at this point in the history
  • Loading branch information
nmeier committed Oct 28, 2019
1 parent dbe955c commit c3f4b12
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
7 changes: 5 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@rules_pkg//:pkg.bzl", "pkg_tar")

pkg_tar(
name = "bazel_ipfs",
srcs = glob(["*.bzl"]),
srcs = glob(["*.bzl"]) + ["release.BUILD.bazel"],
extension = "tar.gz",
remap_paths = {
"release.BUILD.bazel": "BUILD.bazel",
},
)
8 changes: 8 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
workspace(name = "bazel_ipfs")

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

http_archive(
name = "rules_pkg",
sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
)
2 changes: 1 addition & 1 deletion hello_bazel/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@bazel_ipfs//:index.bzl", "ipfs_pin")
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("@rules_pkg//:pkg.bzl", "pkg_tar")

cc_binary(
name = "hello_world",
Expand Down
8 changes: 8 additions & 0 deletions hello_bazel/WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
workspace(name = "bazel_ipfs_hello_bazel")

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

http_archive(
name = "rules_pkg",
sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
)

local_repository(
name = "bazel_ipfs",
path = "..",
Expand Down
Empty file added release.BUILD.bazel
Empty file.

0 comments on commit c3f4b12

Please sign in to comment.