Skip to content

Dockerfile uses removed --reindex-licenses flag  #3155

Description

@s01ipsist

Description

The Dockerfile uses the --reindex-licenses flag
https://github.com/nexB/scancode-toolkit/blob/develop/Dockerfile#L42
which was recently removed
5361052#diff-fad3fa964c566642a9a64df45efd8c9daeb435e1c8791ac1f64d2881b299d753L165
in this PR
#2979

so the Docker image no longer builds.

How To Reproduce

Follow install instructions on
https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#installation-via-docker

git clone https://github.com/nexB/scancode-toolkit
cd scancode-toolkit
docker build --tag scancode-toolkit --tag scancode-toolkit:$(git describe --tags) .

Result

 => ERROR [5/5] RUN ./scancode --reindex-licenses                        134.4s
------
 > [5/5] RUN ./scancode --reindex-licenses:
#9 0.370 * Configuring ScanCode for first use...
#9 133.8 Usage: scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <input>...
#9 133.8 Try the 'scancode --help' option for help on options and arguments.
#9 133.8
#9 133.8 Error: No such option: --reindex-licenses (Possible options: --is-license-text, --license, --unknown-licenses)
------
executor failed running [/bin/sh -c ./scancode --reindex-licenses]: exit code: 2

System configuration

MacOS 13.0.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions