API: URGENT - Pinning silversearcher-ag version causes DevContainer build to fail
After implementing Hadolint for Dockerfile linting, it recommended that all dependencies had pinned versions, for safety and good practice.
One of these packages was "silversearcher-ag", present in our root .devcontainer/Dockerfile.
After pinning this version and merging, it seems (could be wrong - has anyone rebuilt the container recently WITH the changes from !57 (merged) and not experienced this issue?) nobody has rebuilt the dev container until now - @Abby-Frost encountered this issue today when she was trying to launch her dev container, and I was able to confirm that the issue was in fact from a failed version pin.
The error message given is as follows:
#0 9.957 E: Version '2.2.0' for 'silversearcher-ag' was not found
------
error: failed to solve: executor failed running [/bin/sh -c apt-get update && ex
port DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recom
mends bash-completion=1:2.11-2 silversearcher-ag=2.2.0 && rm
-rf /var/lib/apt/lists/*]: exit code: 100
Looking at silversearcher-ag's release tags, we can see that version 2.2.0 does in fact exist, but apt-get apparently cannot find it.
So, we have to figure out a way to get a pinned version that apt-get can find and install successfully, or we have to revisit hadolint and the pipeline, as hadolint will complain and an error will be marked if a dependency does not have a pinned version.