Open SergioRosello opened 2 years ago
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.
The labels on this github issue will be updated when the story is started.
@SergioRosello This has been asked for a bunch but I haven't got around to testing it. It definitely makes sense since 1.14.x is super old. The work around for now has been to just manually bump the version in the image but I know that isn't ideal. I just put up a PR to bump it and I will just see how CI reacts!
Also experiencing this issue. Hopefully there will be a new Docker image with an updated version of Go shortly.
The docker pull licensefinder/license_finder:edge
version of the image is now updated to 1.17.13. I will be making a new release within the next couple weeks. Just fixing up some other things first!
Using Golang 1.18 in the projec to analise.
Steps to reproduce:
cd
to project's directorydocker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && license_finder"
Investigation:
Entering the container with the following command, and not exiting the container for the rest of the code blocks shown:
docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -l
Below is the output of the underlying command license_finder executes.
Checking the return value of the command, this explains the error.
Following golang's instructions from previous command, we see the issue at the end of this command:
It seems projects that my project requires, use package io/fs, first introduced in go 1.16 Checking the golang version, we can see now, why the command is failing.
Fix:
The golang version embedded in the container image should be updated to the latest golang version in order for projects that require packages introduced later than golang 1.14 to use the license_finder application.