Skip to content

Commit 7cc6482

Browse files
🌱 Delete unused project-update functionality. (#3269)
Signed-off-by: Spencer Schrock <sschrock@google.com>
1 parent 8d865ff commit 7cc6482

7 files changed

Lines changed: 1 addition & 358 deletions

File tree

.github/workflows/main.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -696,54 +696,6 @@ jobs:
696696
command: |
697697
go env -w GOFLAGS=-mod=mod
698698
make build-validate-script
699-
build-update-script:
700-
name: build-update-script
701-
runs-on: ubuntu-latest
702-
needs: build-proto
703-
permissions:
704-
contents: read
705-
steps:
706-
- name: Harden Runner
707-
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v1
708-
with:
709-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
710-
711-
- name: Install Protoc
712-
uses: arduino/setup-protoc@149f6c87b92550901b26acd1632e11c3662e381f # v1.3.0
713-
with:
714-
version: ${{ env.PROTOC_VERSION }}
715-
repo-token: ${{ secrets.GITHUB_TOKEN }}
716-
- name: Cache builds
717-
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
718-
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
719-
with:
720-
path: |
721-
~/go/pkg/mod
722-
~/.cache/go-build
723-
~/Library/Caches/go-build
724-
%LocalAppData%\go-build
725-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
726-
restore-keys: |
727-
${{ runner.os }}-go-
728-
- name: Clone the code
729-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v2.3.4
730-
with:
731-
fetch-depth: 0
732-
- name: Setup Go
733-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v2.2.0
734-
with:
735-
go-version: ${{ env.GO_VERSION }}
736-
check-latest: true
737-
cache: true
738-
- name: build-validate-script
739-
uses: nick-invision/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
740-
with:
741-
max_attempts: 3
742-
retry_on: error
743-
timeout_minutes: 30
744-
command: |
745-
go env -w GOFLAGS=-mod=mod
746-
make build-update-script
747699
validate-docs:
748700
name: validate-docs
749701
runs-on: ubuntu-latest

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ clients/githubrepo/roundtripper/tokens/server/github-auth-server
88
clients/githubrepo/roundtripper/tokens/server/github-auth-server.docker
99
cron/internal/data/add/add
1010
cron/internal/data/validate/validate
11-
cron/internal/data/update/projects-update
1211
cron/internal/controller/controller
1312
cron/internal/controller/controller.docker
1413
cron/internal/worker/worker

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ tree-status: | all-targets-update-dependencies ## Verify tree is clean and all c
120120
## Build all cron-related targets
121121
build-cron: build-controller build-worker build-cii-worker \
122122
build-shuffler build-bq-transfer build-github-server \
123-
build-webhook build-add-script build-validate-script build-update-script
123+
build-webhook build-add-script build-validate-script
124124

125125
build-targets = generate-mocks generate-docs build-scorecard build-cron build-proto build-attestor
126126
.PHONY: build $(build-targets)
@@ -295,12 +295,6 @@ cron/internal/data/validate/validate: cron/internal/data/validate/*.go cron/data
295295
# Run go build on the validate script
296296
cd cron/internal/data/validate && CGO_ENABLED=0 go build -trimpath -a -ldflags '$(LDFLAGS)' -o validate
297297

298-
build-update-script: ## Runs go build on the update script
299-
build-update-script: cron/internal/data/update/projects-update
300-
cron/internal/data/update/projects-update: cron/internal/data/update/*.go cron/data/*.go
301-
# Run go build on the update script
302-
cd cron/internal/data/update && CGO_ENABLED=0 go build -trimpath -a -tags netgo -ldflags '$(LDFLAGS)' -o projects-update
303-
304298
docker-targets = scorecard-docker cron-controller-docker cron-worker-docker cron-cii-worker-docker cron-bq-transfer-docker cron-webhook-docker cron-github-server-docker
305299
.PHONY: dockerbuild $(docker-targets)
306300
dockerbuild: $(docker-targets)

cron/internal/data/update/dependency.go

Lines changed: 0 additions & 243 deletions
This file was deleted.

cron/internal/data/update/main.go

Lines changed: 0 additions & 56 deletions
This file was deleted.

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ require (
5151
github.com/mcuadros/go-jsonschema-generator v0.0.0-20200330054847-ba7a369d4303
5252
github.com/onsi/ginkgo/v2 v2.11.0
5353
github.com/otiai10/copy v1.12.0
54-
golang.org/x/tools/go/vcs v0.1.0-deprecated
5554
sigs.k8s.io/release-utils v0.6.0
5655
)
5756

0 commit comments

Comments
 (0)