Skip to content

Commit

Permalink
Merge pull request #22 from stgraber/pr14
Browse files Browse the repository at this point in the history
Move some initial commands to cmd/
  • Loading branch information
hallyn authored Aug 4, 2023
2 parents 8a7cf08 + 1cdec89 commit 4487ce8
Show file tree
Hide file tree
Showing 22 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ jobs:
env:
CGO_ENABLED: 0
run: |
go build -o bin ./incus-migrate
go build -o bin ./cmd/incus-migrate
- name: Unit tests (client)
env:
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ifeq "$(TAG_SQLITE3)" ""
endif

CC="$(CC)" CGO_LDFLAGS_ALLOW="$(CGO_LDFLAGS_ALLOW)" go install -v -tags "$(TAG_SQLITE3)" $(DEBUG) ./...
CGO_ENABLED=0 go install -v -tags netgo ./incus-migrate
CGO_ENABLED=0 go install -v -tags netgo ./cmd/incus-migrate
CGO_ENABLED=0 go install -v -tags agent,netgo ./incus-agent
@echo "Incus built successfully"

Expand All @@ -47,7 +47,7 @@ incus-agent:

.PHONY: incus-migrate
incus-migrate:
CGO_ENABLED=0 go install -v -tags netgo ./incus-migrate
CGO_ENABLED=0 go install -v -tags netgo ./cmd/incus-migrate
@echo "Incus migration tool built successfully"

.PHONY: incus-doc
Expand Down Expand Up @@ -158,7 +158,7 @@ ifeq "$(TAG_SQLITE3)" ""
endif

CC="$(CC)" CGO_LDFLAGS_ALLOW="$(CGO_LDFLAGS_ALLOW)" go install -v -tags "$(TAG_SQLITE3) logdebug" $(DEBUG) ./...
CGO_ENABLED=0 go install -v -tags "netgo,logdebug" ./incus-migrate
CGO_ENABLED=0 go install -v -tags "netgo,logdebug" ./cmd/incus-migrate
CGO_ENABLED=0 go install -v -tags "agent,netgo,logdebug" ./incus-agent
@echo "Incus built successfully"

Expand All @@ -170,7 +170,7 @@ ifeq "$(TAG_SQLITE3)" ""
endif

CC="$(CC)" CGO_LDFLAGS_ALLOW="$(CGO_LDFLAGS_ALLOW)" go install -a -v -tags "$(TAG_SQLITE3)" $(DEBUG) ./...
CGO_ENABLED=0 go install -a -v -tags netgo ./incus-migrate
CGO_ENABLED=0 go install -a -v -tags netgo ./cmd/incus-migrate
CGO_ENABLED=0 go install -a -v -tags agent,netgo ./incus-agent
@echo "Incus built successfully"

Expand All @@ -181,7 +181,7 @@ ifeq "$(TAG_SQLITE3)" ""
endif

CC="$(CC)" CGO_LDFLAGS_ALLOW="$(CGO_LDFLAGS_ALLOW)" go install -race -v -tags "$(TAG_SQLITE3)" $(DEBUG) ./...
CGO_ENABLED=0 go install -v -tags netgo ./incus-migrate
CGO_ENABLED=0 go install -v -tags netgo ./cmd/incus-migrate
CGO_ENABLED=0 go install -v -tags agent,netgo ./incus-agent
@echo "Incus built successfully"

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.

0 comments on commit 4487ce8

Please sign in to comment.