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

gitignore go.work.sum #42

Merged
merged 3 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin
output
/output
/go.work.sum
9 changes: 6 additions & 3 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ golang-base:
tools-base:
FROM +golang-base

COPY tools/go.mod tools/go.sum tools/go.work tools/go.work.sum tools
COPY --dir tools/go.mod tools/go.sum tools/go.work tools
COPY --if-exists --dir tools/go.work.sum tools
WORKDIR tools
RUN --ssh go mod download

Expand Down Expand Up @@ -123,7 +124,8 @@ code-generator:
build-base:
FROM +golang-base

COPY go.work go.work.sum .
COPY --dir go.work .
COPY --if-exists --dir go.work.sum .
# Generate stub modules so that go.work can work without loading the code of unrelated modules into the image
FOR mod IN apis client util generator aggregator webhook allinone tests
RUN mkdir $mod && echo "module github.com/kubewharf/podseidon/$mod" >$mod/go.mod
Expand Down Expand Up @@ -256,7 +258,8 @@ lint:

CACHE --id go-cache --sharing shared /root/.cache

COPY go.work go.work.sum /work/
COPY --dir go.work /work/
COPY --if-exists --dir go.work.sum /work/
WORKDIR /work

ARG dep_modules='apis client'
Expand Down
4 changes: 2 additions & 2 deletions allinone/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down
Loading