License Compliance command to list pre-installed tools doesn't work
Problem to solve
License Compliance docs says that command below can be used to list all the pre-installed tools:
$ docker run --entrypoint='' registry.gitlab.com/security-products/license-finder:4 /bin/bash -lc 'asdf list'
golang
1.14
gradle
6.3
java
adopt-openjdk-11.0.7+10
adopt-openjdk-8u242-b08
maven
3.6.3
nodejs
10.20.1
12.16.3
php
7.4.5
python
2.7.18
3.8.2
ruby
2.6.6
sbt
1.3.8
but the actual result will be
$ docker run --entrypoint='' registry.gitlab.com/security-products/license-finder:4 /bin/bash -lc 'asdf list'
dotnet-core
No versions installed
elixir
1.10.4
golang
No versions installed
gradle
No versions installed
java
No versions installed
maven
No versions installed
nodejs
No versions installed
php
No versions installed
python
No versions installed
ruby
No versions installed
rust
No versions installed
Related problem: This might be what makes the following CI job fail:
TODO: create a separate issue for that other problem
Further details
asdf list
can't list tools before the corresponding Debian packages have been installed.
Possible fix
Doc update: Install all the Debian packages from /opt/toolcache
before running asdf
.
Edited by Fabien Catteau