Skip to content

Commit

Permalink
Merge pull request #625 from yue9944882/move-v2-pkg
Browse files Browse the repository at this point in the history
Chore: Move sources to dir v2
  • Loading branch information
yue9944882 authored Apr 3, 2022
2 parents e8140aa + 18fb6af commit 035797f
Show file tree
Hide file tree
Showing 36 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
env:
GOPATH: ${{ github.workspace }}/go
run: |
go build -o ${GOPATH}/bin/apiserver-boot ./cmd/apiserver-boot/main.go
make install
- name: Install controller-tools
env:
GO111MODULE: on
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
GOPATH: ${{ github.workspace }}/go
run: |
mkdir -p bin
go build -o ${GOPATH}/bin/apiserver-boot ./cmd/apiserver-boot/main.go
make install
- name: Install controller-tools
env:
GO111MODULE: on
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ default: install

.PHONY: test
test:
go test ./pkg/... ./cmd/...
go test ./v2/...

.PHONY: install
install: build
@echo "Installing apiserver-builder suite tools..."
@echo "GOOS: $(GOOS)"
@echo "GOARCH: $(GOARCH)"
@echo "ARCH: $(ARCH)"
go install ./cmd/apiserver-boot
go install ./v2/cmd/apiserver-boot

.PHONY: clean
clean:
Expand All @@ -47,7 +47,7 @@ clean:
.PHONY: build
build: clean ## Create release artefacts for darwin:amd64, linux:amd64 and windows:amd64. Requires etcd, glide, hg.
mkdir -p bin
go build -o bin/apiserver-boot ./cmd/apiserver-boot
go build -o bin/apiserver-boot ./v2/cmd/apiserver-boot

release-binary:
mkdir -p bin
Expand All @@ -59,6 +59,6 @@ release-binary:
-X 'sigs.k8s.io/apiserver-builder-alpha/cmd/apiserver-boot/boot/version.apiserverBuilderVersion=${VERSION}' \
-X 'sigs.k8s.io/apiserver-builder-alpha/cmd/apiserver-boot/boot/version.gitCommit=${COMMIT}' \
" \
-o bin/apiserver-boot ./cmd/apiserver-boot
-o bin/apiserver-boot ./v2/cmd/apiserver-boot
tar czvf apiserver-boot-${GOOS}-${GOARCH}.tar.gz bin/apiserver-boot

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module sigs.k8s.io/apiserver-builder-alpha/v2
module sigs.k8s.io/apiserver-builder-alpha

go 1.17

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 035797f

Please sign in to comment.