Skip to content

install.sh script fails to fetch latest version of buildifier (artifact formatting changed) #19

@pwschuurman

Description

@pwschuurman

The latest version of buildifier changed the release tagging structure: https://github.com/bazelbuild/buildtools/releases/tag/v8.5.1

Instead of buildifier-linux-${ARCH}, the latest version is tagged as buildifier-linux_${ARCH}. So the install.sh script fails with:

------                                                                                                                                                                                                                                                                                    
 > [dev_containers_target_stage 4/5] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=bazel_0,target=/tmp/build-features-src/bazel_0     cp -ar /tmp/build-features-src/bazel_0 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/bazel_0  && cd /tmp/dev-container-features/bazel_0  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/bazel_0:                                                                                                          
0.386 ===========================================================================                                                                                                                                                                                                         
0.386 Feature       : Bazel                                                                                                                                                                                                                                                               
0.386 Description   : Bazel feature                                                                                                                                                                                                                                                       
0.386 Id            : ghcr.io/devcontainers-community/features/bazel
0.386 Version       : 1.2.2
0.386 Documentation : https://github.com/devcontainers-community/features-bazel
0.386 Options       :
0.386     BAZELISK_VERSION="latest"
0.386     BUILDIFIER_VERSION="latest"
0.386 ===========================================================================
0.394 + source lib.sh
0.394 + check_packages curl ca-certificates
0.394 + dpkg -s curl ca-certificates
0.403 + apt_cleanup
0.403 + rm -rf '/var/lib/apt/lists/*'
0.404 + echo 'Installing Bazel'
0.404 + LOCAL_BIN=/usr/local/bin
0.404 Installing Bazel
0.405 ++ uname -m
0.406 + arch=x86_64
0.406 + case "${arch}" in
0.406 + ARCHITECTURE=amd64
0.406 ++ uname -s
0.408 + platf=Linux
0.408 + case "${platf}" in
0.408 + PLATFORM=linux
0.408 + github_download bazelbuild/bazelisk latest bazelisk-linux-amd64 /usr/local/bin/bazelisk
0.408 + repo=bazelbuild/bazelisk
0.408 + version=latest
0.408 + artifact=bazelisk-linux-amd64
0.408 + output=/usr/local/bin/bazelisk
0.408 + '[' latest = latest ']'
0.408 + URL=https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
0.408 + curl -fSsL https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 -o /usr/local/bin/bazelisk
0.645 + chmod +x /usr/local/bin/bazelisk
0.647 + ln -s /usr/local/bin/bazelisk /usr/local/bin/bazel
0.650 + github_download bazelbuild/buildtools latest buildifier-linux-amd64 /usr/local/bin/buildifier
0.650 + repo=bazelbuild/buildtools
0.650 + version=latest
0.650 + artifact=buildifier-linux-amd64
0.650 + output=/usr/local/bin/buildifier
0.650 + '[' latest = latest ']'
0.650 + URL=https://github.com/bazelbuild/buildtools/releases/latest/download/buildifier-linux-amd64
0.650 + curl -fSsL https://github.com/bazelbuild/buildtools/releases/latest/download/buildifier-linux-amd64 -o /usr/local/bin/buildifier
0.951 curl: (22) The requested URL returned error: 404 
0.957 ERROR: Feature "Bazel" (ghcr.io/devcontainers-community/features/bazel) failed to install! Look at the documentation at https://github.com/devcontainers-community/features-bazel for help troubleshooting this error.
------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions