Skip to content

Commit

Permalink
chore(go.work): Remove go.work
Browse files Browse the repository at this point in the history
> It is generally inadvisable to commit go.work files into version
control systems
https://go.dev/ref/mod#go-work-file
  • Loading branch information
silvestre committed Sep 13, 2024
1 parent c206b04 commit 47b523b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ src/acceptance/assets/app/go_app/internal/custommetrics/oas*gen.go
src/acceptance/assets/app/go_app/internal/policy/oas*gen.go
src/autoscaler/helpers/apis/scalinghistory/oas*gen.go

# Autogenerated files
go.work.sum
# https://go.dev/ref/mod#go-work-file
go.work*

# acceptance-test binaries
src/acceptance/**/*.test
Expand Down
3 changes: 0 additions & 3 deletions ci/autoscaler/tasks/update-sdk/update_golang_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ export golang_dir

golang_version=$(cat "${golang_dir}/packages/golang-1-linux/version")

step "updating go.work file with golang version ${golang_version}"
go work edit -go "${golang_version}" "${autoscaler_dir}/go.work"

step "updating go.mod files with golang version ${golang_version}"
find "${autoscaler_dir}" -name go.mod -type f -exec go mod edit -go "${golang_version}" "{}" \;

Expand Down
9 changes: 0 additions & 9 deletions go.work

This file was deleted.

0 comments on commit 47b523b

Please sign in to comment.