Skip to content

Commit 4b740d3

Browse files
Merge pull request #161 from docker/install-hub-tool
Move main.go to root directory
2 parents 42e4a43 + 3528d28 commit 4b740d3

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ perform Hub maintenance tasks.
2323
[here](https://github.com/docker/hub-tool/releases)
2424
- Extract the package and place the `hub-tool` binary somewhere in your `PATH`
2525

26+
OR
27+
28+
- Install from sources: `go install github.com/docker/hub-tool`
29+
2630
### Login to Docker Hub
2731

2832
Login to the [Docker Hub](https://hub.docker.com) using your username and

Diff for: builder.Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ test-unit:
5757

5858
.PHONY:cross
5959
cross:
60-
GOOS=linux GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_amd64 ./cmd/$(BINARY_NAME)
61-
GOOS=linux GOARCH=arm64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_arm64 ./cmd/$(BINARY_NAME)
62-
GOOS=linux GOARCH=arm $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_arm ./cmd/$(BINARY_NAME)
63-
GOOS=darwin GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_darwin_amd64 ./cmd/$(BINARY_NAME)
64-
GOOS=windows GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_windows_amd64.exe ./cmd/$(BINARY_NAME)
60+
GOOS=linux GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_amd64 .
61+
GOOS=linux GOARCH=arm64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_arm64 .
62+
GOOS=linux GOARCH=arm $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_linux_arm .
63+
GOOS=darwin GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_darwin_amd64 .
64+
GOOS=windows GOARCH=amd64 $(STATIC_FLAGS) $(GO_BUILD) -o bin/$(BINARY_NAME)_windows_amd64.exe .
6565

6666
# Note we're building statically for now to simplify releases. We can
6767
# investigate dynamic builds later.
6868
.PHONY: build
6969
build:
7070
mkdir -p bin
71-
$(STATIC_FLAGS) $(GO_BUILD) -o bin/$(PLATFORM_BINARY) ./cmd/$(BINARY_NAME)
71+
$(STATIC_FLAGS) $(GO_BUILD) -o bin/$(PLATFORM_BINARY) .
7272
cp bin/$(PLATFORM_BINARY) bin/$(BINARY)
7373

7474
.PHONY: package

Diff for: cmd/hub-tool/main.go renamed to main.go

File renamed without changes.

0 commit comments

Comments
 (0)