Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
guoliangye-okta committed Oct 24, 2024
1 parent 461682d commit fd45b0b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ RUN if [ -d "vendor" ]; then \
else \
echo "Vendor directory does not exist"; \
fi

RUN go mod download
RUN go mod tidy
RUN go mod tidy
RUN go mod vendor
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,10 @@ updatedep:
GOPRIVATE=${GOPRIVATE} go mod tidy
GOPRIVATE=${GOPRIVATE} go get $(dep)@latest
GOPRIVATE=${GOPRIVATE} go mod tidy
GOPRIVATE=${GOPRIVATE} go mod vendor
GOPRIVATE=${GOPRIVATE} go mod vendor


update-go-deps:
export GOPRIVATE=github.com/atko-pam && \
go mod tidy && \
go mod vendor
4 changes: 2 additions & 2 deletions Makefile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ ci-check-generate: ci-container
-e TF_ACC_TERRAFORM_PATH \
-e TF_ACC_TERRAFORM_VERSION \
-v ${TF_ACC_TERRAFORM_PATH}:/usr/local/bin/terraform \
-v "$(CURDIR)/build/ci-output:/output" `cat ./build/ci-output/container.txt` /usr/bin/make -C ${SRC_DIR} check-generate
-v "$(CURDIR)/build/ci-output:/output" `cat ./build/ci-output/container.txt` /usr/bin/make -C ${SRC_DIR} update-go-deps check-generate

.PHONY: all ci-compile ci-test ci-acceptance-test ci-check-generate
.PHONY: all ci-compile ci-test ci-acceptance-test ci-check-generate update-go-deps

0 comments on commit fd45b0b

Please sign in to comment.