Skip to content

[Bug]: go.mod file not found error using podman #579

Description

@jeremychoi

What steps did you take and what happened:

Following the README and ran podman compose up --build -d. I got the following error:

Downloading https://release.ariga.io/atlas/atlas-linux-arm64-latest
######################################################################## 100.0%
atlas version v0.35.1-db94189-canary
https://github.com/ariga/atlas/releases/latest
Installation successful!
--> 581e2d904e93
[1/2] STEP 5/6: ENV GOMODCACHE /root/.cache/gocache
--> 8f46c5beae18
[1/2] STEP 6/6: RUN --mount=target=. --mount=target=/root/.cache,type=cache     CGO_ENABLED=0 go build -o /out/archivista -ldflags '-s -d -w' ./cmd/archivista;     file /out/archivista | 
grep "statically linked"
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
Error: building at STEP "RUN --mount=target=. --mount=target=/root/.cache,type=cache CGO_ENABLED=0 go build -o /out/archivista -ldflags '-s -d -w' ./cmd/archivista;     file /out/archivista | grep "statically linked"": while running runtime: exit status 1

ERROR:podman_compose:Build command failed
Error: executing /opt/homebrew/bin/podman-compose up --build -d: exit status 1

What did you expect to happen:

The build goes successfully.

Anything else you would like to add:

[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Witness version:
  • Architecture:
  • Attestors used:
  • Archivista version: v0.9.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions