Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make missing in v1.32.1 Docker image #1483

Closed
3 tasks done
invidian opened this issue Nov 1, 2020 · 9 comments · Fixed by #1487
Closed
3 tasks done

Make missing in v1.32.1 Docker image #1483

invidian opened this issue Nov 1, 2020 · 9 comments · Fixed by #1487
Assignees
Labels
area: docker bug Something isn't working

Comments

@invidian
Copy link
Contributor

invidian commented Nov 1, 2020

Thank you for creating the issue!

  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc).

It seems Docker images up to golangci/golangci-lint:v1.32.0 were containing make binary, which was handy, when having a Makefile target which will trigger linting, which I believe might be a common scenario.

However, golangci/golangci-lint:v1.32.1 image no longer includes make, which at the moment breaks the CI for our project and blocks us from updating to latest version of the linter.

It would be great to have make back, so we can keep using official upstream images for linting!

Console log:

$ docker run -it --entrypoint /bin/sh golangci/golangci-lint:v1.32.0 -c 'which make'
Unable to find image 'golangci/golangci-lint:v1.32.0' locally
v1.32.0: Pulling from golangci/golangci-lint
e4c3d3e4f7b0: Already exists
101c41d0463b: Already exists
8275efcd805f: Already exists
751620502a7a: Already exists
aaabf962c4fc: Already exists
7883babec904: Pull complete
1791d366c848: Pull complete
974f06baf804: Pull complete
Digest: sha256:d69fe1a8460770ddca730654c880a9ddad33bc538f162be084135d73d7adf8bd
Status: Downloaded newer image for golangci/golangci-lint:v1.32.0
/usr/bin/make
$ docker run -it --entrypoint /bin/sh golangci/golangci-lint:v1.32.1 -c 'which make'
Unable to find image 'golangci/golangci-lint:v1.32.1' locally
v1.32.1: Pulling from golangci/golangci-lint
188c0c94c7c5: Pull complete
0ef7d3d256c8: Pull complete
de9db76c5a1d: Pull complete
0eba1c9be4d2: Pull complete
0d57e429df01: Pull complete
59a968b239ef: Pull complete
df2d921a9792: Pull complete
Digest: sha256:5a0752732d0da7b838db12c317fffb76b0a13ef594ced9ceea32dc4def48f5b6
Status: Downloaded newer image for golangci/golangci-lint:v1.32.1
@invidian invidian added the bug Something isn't working label Nov 1, 2020
@sayboras
Copy link
Member

sayboras commented Nov 1, 2020

Thanks for reporting this issue, recent PR was done by me #1471, but I can't see any change related to make. My guess right now is that upstream docker image didn't ship with make anymore.

Just curious if you are planning to work on this 😄 ?

@sayboras sayboras added area: docker help wanted Issue that needs help from a contributor good first issue Good for newcomers labels Nov 1, 2020
@invidian
Copy link
Contributor Author

invidian commented Nov 1, 2020

Yeah, I looked at the diff between v1.32.0 and v1.32.1 and it doesn't seem to be a regression here. I still decided to report here to let you guys know as other people may be affected by this too. I'l digging deeper right now ⛏️

@invidian
Copy link
Contributor Author

invidian commented Nov 1, 2020

Oh, interesting:

$ docker run -it --entrypoint /bin/sh golangci/golangci-lint:v1.32.1 -c 'cat /etc/os-release'
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.12.1
PRETTY_NAME="Alpine Linux v3.12"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
$ docker run -it --entrypoint /bin/sh golangci/golangci-lint:v1.32.0 -c 'cat /etc/os-release'
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

I suppose this was not intended.

@sayboras
Copy link
Member

sayboras commented Nov 1, 2020

good finding 💯, now I can confirm it's my mistake overriding the tag for docker image. I used the same tags for both 🤦.

Thanks for checking on this 💯

Original tag for alpine

          tags: |	
            golangci/golangci-lint:${{ steps.prepare.outputs.tag_name }}-alpine	
            golangci/golangci-lint:${{ steps.prepare.outputs.major_tag }}-alpine	
            golangci/golangci-lint:latest-alpine

@invidian
Copy link
Contributor Author

invidian commented Nov 1, 2020

No worries, it didn't take too much time. @sayboras are you going to fix it then?

@sayboras
Copy link
Member

sayboras commented Nov 1, 2020

No worries, it didn't take too much time. @sayboras are you going to fix it then?

Yeah, I can do it, but later in the day only, I am about to start my day job :)

@aaronchipper
Copy link

Thanks for this.
It bit us on the backside over the weekend when pushing a deploy. We worked around it adding a make install to the build scripts, but it definitely was a surprise!
Let me know if you want someone to test and confirm - happy to do so.

sayboras added a commit to sayboras/golangci-lint that referenced this issue Nov 2, 2020
This commit is to avoid tag overriding due to parallel build for
multiple base images (e.g. debian and alpine).

Closes golangci#1483 golangci#1486

Signed-off-by: Tam Mach <[email protected]>
@sayboras
Copy link
Member

sayboras commented Nov 2, 2020

Thanks guys for offering help to test this one out, the changes are available in #1487, please let me know if there is anything that I could have missed (again 😓 )

@aaronchipper
Copy link

Looking good. Thanks for this.

sayboras added a commit that referenced this issue Nov 3, 2020
This commit is to avoid tag overriding due to parallel build for
multiple base images (e.g. debian and alpine).

Closes #1483 #1486

Signed-off-by: Tam Mach <[email protected]>
@ldez ldez removed help wanted Issue that needs help from a contributor good first issue Good for newcomers labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docker bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants