UNCLASSIFIED - NO CUI

Skip to content

golang 1.21.5 container is missing the actual go binary

Summary

The golang package is being installed in /usr/local/go and there is no /usr/local/go/bin folder containing the go binary when looking at the contents of the directory in the container that is being published.

Steps to reproduce

> docker run -ti --entrypoint bash registry1.dso.mil/ironbank/google/golang/debian/golang-1.21:1.21.5
golanguser@5832c16aa1fc:~$ go
bash: go: command not found
golanguser@5832c16aa1fc:~$ ls /usr/local/go/
CONTRIBUTING.md  LICENSE  PATENTS  README.md  SECURITY.md  VERSION  api  codereview.cfg  doc  go.env  lib  misc  src  test

What is the current bug behavior?

See above

What is the expected correct behavior?

access to the actual go binary that would allow the running of go commands.

Relevant logs and/or screenshots

see above

Possible fixes

I am not sure how it gets deleted unless for some reason it is not in the original tar file that is used.

Tasks

  • Bug has been identified and corrected within the container

Please read the Iron Bank Documentation for more info

Edited by Kyle Rotte
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information