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

Building rbIAM on fresh ubuntu container fails #3

Closed
iptizer opened this issue Oct 9, 2019 · 1 comment
Closed

Building rbIAM on fresh ubuntu container fails #3

iptizer opened this issue Oct 9, 2019 · 1 comment

Comments

@iptizer
Copy link

iptizer commented Oct 9, 2019

Error:

root@b723326f86f9:/# go get github.com/mhausenblas/rbIAM
# github.com/mhausenblas/rbIAM
root/go/src/github.com/mhausenblas/rbIAM/iam.go:55:12: cannot use res (type *sts.GetCallerIdentityResponse) as type *sts.GetCallerIdentityOutput in assignment

Steps to reproduce:

  • Dockerfile:
FROM ubuntu

RUN apt-get update
RUN apt-get install -y golang git
RUN go get github.com/mhausenblas/rbIAM

ENTRYPOINT "bash"
  • Building the Dockerfile leads to the following error:
$ docker build .
[...]
---> d2ea1f41b7ca
Step 4/5 : RUN go get github.com/mhausenblas/rbIAM
 ---> Running in c4afde336f0f
# github.com/mhausenblas/rbIAM
root/go/src/github.com/mhausenblas/rbIAM/iam.go:55:12: cannot use res (type *sts.GetCallerIdentityResponse) as type *sts.GetCallerIdentityOutput in assignment
The command '/bin/sh -c go get github.com/mhausenblas/rbIAM' returned a non-zero code: 2
@mhausenblas
Copy link
Owner

It currently has no dependencies vendored, so you need to make sure github.com/aws/aws-sdk-go-v2 and other dependencies are made available explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants