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

Misc Go container fixes #158

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

cbrake
Copy link

@cbrake cbrake commented Oct 25, 2023

This fixes the following issue:

 => ERROR [build 4/6] RUN go mod download && go mod verify                                                                         3.2s 
------                                                                                                                                  
 > [build 4/6] RUN go mod download && go mod verify:                                                                                    
0.554 go: go.mod requires go >= 1.21.3 (running go 1.21.1; GOTOOLCHAIN=local)                                                           
------                                                                                                                                  
Dockerfile:6                                                                                                                            
--------------------                                                                                                                    
   4 |                                                                                                                                  
   5 |     COPY go.mod go.sum ./                                                                                                        
   6 | >>> RUN go mod download && go mod verify                                                                                         
   7 |                                                                                                                                  
   8 |     COPY . ./                                                                                                                    
--------------------                                                                                                                    
ERROR: failed to solve: process "/bin/sh -c go mod download && go mod verify" did not complete successfully: exit code: 1               
build image: exit status 1                                                                                                

Signed-off-by: Cliff Brake <cbrake@bec-systems.com>
Signed-off-by: Cliff Brake <cbrake@bec-systems.com>
@cbrake
Copy link
Author

cbrake commented Oct 26, 2023

Also added a fix for trying to run jetstream/api-migration/go

 => ERROR [build 6/6] RUN go build -v -o /app ./...                                                                                0.4s 
------                                                                                                                                  
 > [build 6/6] RUN go build -v -o /app ./...:                                                                                           
0.359 /go/pkg/mod/github.com/nats-io/nats.go@v1.31.0/jetstream/stream_config.go:22:2: missing go.sum entry for module providing package golang.org/x/text/cases (imported by github.com/nats-io/nats.go/jetstream); to add:
0.359   go get github.com/nats-io/nats.go/jetstream@v1.31.0                                                                             
0.359 /go/pkg/mod/github.com/nats-io/nats.go@v1.31.0/jetstream/stream_config.go:23:2: missing go.sum entry for module providing package golang.org/x/text/language (imported by github.com/nats-io/nats.go/jetstream); to add:
0.359   go get github.com/nats-io/nats.go/jetstream@v1.31.0                                                                             
------                                                                                                                                  
Dockerfile:9                                                                                                                            
--------------------                                                                                                                    
   7 |                                                                                                                                  
   8 |     COPY . ./                                                                                                                    
   9 | >>> RUN go build -v -o /app ./...                                                                                                
  10 |                                                                                                                                  
  11 |     FROM alpine                                                                                                                  
--------------------                                                                                                                    
ERROR: failed to solve: process "/bin/sh -c go build -v -o /app ./..." did not complete successfully: exit code: 1                      

@cbrake cbrake changed the title update Go to 1.21.3 Misc Go container fixes Oct 26, 2023
@cbrake
Copy link
Author

cbrake commented Oct 26, 2023

I'm probably missing something here as the example obviously ran for the nbe website ...

@bruth bruth self-requested a review November 1, 2023 13:30
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

Successfully merging this pull request may close these issues.

None yet

1 participant