Skip to content

Commit

Permalink
fix: load pkg_tar from the right location (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiuto authored Aug 24, 2023
1 parent 79f1d8f commit 864e78a
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ For this example let's say it's `go_binary(name = "app", ...)`.
Next, put that file into a layer, which is just a `.tar` file:

```
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
pkg_tar(
name = "tar",
Expand Down
4 changes: 2 additions & 2 deletions docs/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ rust_binary(
After that, we package that binary into a layer using `pkg_tar`

```
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
# Step 2: Compress it to layer using pkg_tar
pkg_tar(
Expand Down Expand Up @@ -163,7 +163,7 @@ Complete `BUILD.bazel` file

```
load("@rules_rust//rust:defs.bzl", "rust_binary")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
load("@rules_oci//oci:defs.bzl", "oci_image")
package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 1 addition & 1 deletion docs/static_content.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ And finally the build rules for our image.

```python
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_tarball")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
filegroup(
name = "static",
srcs = ["index.html", "textfile.txt"],
Expand Down
2 changes: 1 addition & 1 deletion e2e/wasm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ load("@rules_rust//rust:defs.bzl", "rust_binary")
load("@aspect_bazel_lib//lib:transitions.bzl", "platform_transition_filegroup")
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_tarball")
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion examples/env/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//oci:defs.bzl", "oci_image")
load("@aspect_bazel_lib//lib:jq.bzl", "jq")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
load("@container_structure_test//:defs.bzl", "container_structure_test")

pkg_tar(
Expand Down
2 changes: 1 addition & 1 deletion examples/env_inheritance/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//oci:defs.bzl", "oci_image")
load("@container_structure_test//:defs.bzl", "container_structure_test")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
load("@aspect_bazel_lib//lib:testing.bzl", "assert_contains")

pkg_tar(
Expand Down
2 changes: 1 addition & 1 deletion examples/labels/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//oci:defs.bzl", "oci_image")
load("@aspect_bazel_lib//lib:jq.bzl", "jq")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
load("@container_structure_test//:defs.bzl", "container_structure_test")

pkg_tar(
Expand Down
2 changes: 1 addition & 1 deletion examples/multi_arch/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("//oci:defs.bzl", "oci_image", "oci_image_index")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
load("@aspect_bazel_lib//lib:testing.bzl", "assert_contains")
load(":transition.bzl", "multi_arch")

Expand Down
2 changes: 1 addition & 1 deletion examples/sign/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//cosign:defs.bzl", "cosign_sign")
load("//oci:defs.bzl", "oci_image")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")

pkg_tar(
name = "app",
Expand Down

0 comments on commit 864e78a

Please sign in to comment.