Skip to content

Commit

Permalink
refactor: unwind custom fork (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn authored Oct 17, 2023
1 parent 08a8928 commit 3a0796c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependenc
bazel_dep(name = "buildifier_prebuilt", version = "6.1.0", dev_dependency = True)

toolchain = use_extension("//apko:extensions.bzl", "apko")
toolchain.toolchain(apko_version = "v0.0.0")
toolchain.toolchain(apko_version = "v0.11.0")
use_repo(toolchain, "apko_toolchains")

register_toolchains("@apko_toolchains//:all")
Expand Down
12 changes: 6 additions & 6 deletions apko/private/versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Add new versions by running
# ./scripts/mirror_apko.sh
APKO_VERSIONS = {
"v0.0.0": {
"darwin_amd64": "sha256-hZ253iuIVqEOTQ4rrX1DrgOMqnxaHM6b8iUeUjd1ZBY=",
"darwin_arm64": "sha256-OX8S8TjiVenvc71CMWRqZM/JKOItTeKxLYk48HTY8m0=",
"linux_386": "sha256-sw4xdL7SN67wYz59J5XgEgtx8wdF4tS2SA1FQt/9J48=",
"linux_amd64": "sha256-Zc4OUCWYfuIe81S0UeCwPOA75Xb7uof9Nm5P6xLil1E=",
"linux_arm64": "sha256-uUiiqdb/LU3ezDlqhL6GBogLn7wOinQKnabE3vryXok=",
"v0.11.0": {
"darwin_amd64": "sha256-u7OtDCR+RRm1H60gz5n12wV0HFjVF5ZLxOh8cWj/a4g=",
"darwin_arm64": "sha256-TwZIc/Au3HiZGFtSu6+jAPjGb1tgf3SLR7Brgx9NAnU=",
"linux_386": "sha256-l+CqC0kTOib9POfYvEQHE/6UPvRvgBlsEwD5VOiVfQM=",
"linux_amd64": "sha256-3bNyYPKFjoyrUCuTRS1ylfwmywioOeroc0hfcoGpKHw=",
"linux_arm64": "sha256-WAJItgSMVFBLr3M2iSn+wXatYG+YCcE6hyEupRxhRA4=",
},
}
2 changes: 1 addition & 1 deletion apko/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ _ATTRS = {
}

def _apko_repo_impl(repository_ctx):
url = "https://github.com/thesayyn/apko/releases/download/v{version}/apko_{version}_{platform}.tar.gz".format(
url = "https://github.com/chainguard-dev/apko/releases/download/v{version}/apko_{version}_{platform}.tar.gz".format(
version = repository_ctx.attr.apko_version.lstrip("v"),
platform = repository_ctx.attr.platform,
)
Expand Down
2 changes: 1 addition & 1 deletion apko/tests/versions_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ load("//apko/private:versions.bzl", "APKO_VERSIONS")

def _smoke_test_impl(ctx):
env = unittest.begin(ctx)
asserts.equals(env, "v0.0.0", APKO_VERSIONS.keys()[0])
asserts.equals(env, "v0.11.0", APKO_VERSIONS.keys()[0])
return unittest.end(env)

# The unittest library requires that we export the test cases as named test rules,
Expand Down
2 changes: 1 addition & 1 deletion scripts/mirror_apko.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit -o nounset -o pipefail
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
RAW=$(mktemp)

REPOSITORY=${1:-"thesayyn/apko"}
REPOSITORY=${1:-"chainguard-dev/apko"}
TOOL=${2:-"apko"}

# per_page=1 to just mirror the most recent release
Expand Down

0 comments on commit 3a0796c

Please sign in to comment.