Skip to content

Commit

Permalink
Stop using the (deprecated) commit-warehouse
Browse files Browse the repository at this point in the history
The warehouse is no longer necessary thanks to docker-library/bashbrew#4 🥳
  • Loading branch information
tianon committed May 6, 2020
1 parent 8b97d11 commit ca134b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
18 changes: 1 addition & 17 deletions naughty-constraints.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,7 @@ for img in $tags; do
for BASHBREW_ARCH in $arches; do
export BASHBREW_ARCH

if ! froms="$(_froms "$img" 2>/dev/null)"; then
# if we can't fetch the tags from their real locations, let's try the warehouse
refsList="$(
bashbrew list --uniq "$img" \
| sed \
-e 's!:!/!' \
-e "s!^!refs/tags/$BASHBREW_ARCH/!" \
-e 's!$!:!'
)"
[ -n "$refsList" ]
git -C "$BASHBREW_CACHE/git" \
fetch --no-tags --quiet \
https://github.com/docker-library/commit-warehouse.git \
$refsList
froms="$(_froms "$img")"
fi

froms="$(_froms "$img")"
[ -n "$froms" ] # rough sanity check

allExpected=
Expand Down
18 changes: 1 addition & 17 deletions naughty-from.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,7 @@ for img in $tags; do
for BASHBREW_ARCH in $arches; do
export BASHBREW_ARCH

if ! froms="$(_froms "$img" 2>/dev/null)"; then
# if we can't fetch the tags from their real locations, let's try the warehouse
refsList="$(
bashbrew list --uniq "$img" \
| sed \
-e 's!:!/!' \
-e "s!^!refs/tags/$BASHBREW_ARCH/!" \
-e 's!$!:!'
)"
[ -n "$refsList" ]
git -C "$BASHBREW_CACHE/git" \
fetch --no-tags --quiet \
https://github.com/docker-library/commit-warehouse.git \
$refsList
froms="$(_froms "$img")"
fi

froms="$(_froms "$img")"
[ -n "$froms" ] # rough sanity check

for from in $froms; do
Expand Down

0 comments on commit ca134b5

Please sign in to comment.