Skip to content

Commit 548014c

Browse files
committed
rename directory for go install
1 parent a608fbd commit 548014c

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.goreleaser.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ before:
55
hooks:
66
- go mod tidy
77
builds:
8-
- main: ./cmd/main.go
8+
- main: ./gih/main.go
99
binary: gih
1010
ldflags:
1111
- -s -w

Makefile

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.PHONY: build install update restore tidy update_all outdated
22

33
build:
4-
go build -o gih_dev -ldflags "-X main.version='0.0.1-test'" ./cmd
4+
go build -o gih_dev -ldflags "-X main.version='0.0.1-test'" ./gih
55

66
install:
7-
go install ./cmd
7+
go install ./gih
88

99
update: update_all tidy
1010

@@ -16,8 +16,6 @@ tidy:
1616
update_all:
1717
go get -u -v ./...
1818

19-
outdated:
20-
go list -m -u all
2119

2220
.PHONY: test
2321
test:

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ $ tree
4545
```shell
4646
$ go install github.com/takecy/git-here/gih@latest
4747
```
48+
4849
### via Binary
4950
Download from [Release Page](https://github.com/takecy/git-here/releases) for your environment.
5051
and copy binary to your `$PATH`.
@@ -83,7 +84,7 @@ It is to simplify development. You can start right away just by cloning.
8384
```
8485
$ git clone git@github.com:takecy/git-here.git
8586
$ cd git-here
86-
$ DEBUG=* go run cmd/main.go version
87+
$ DEBUG=* go run gih/main.go version
8788
```
8889

8990
### Testing

cmd/main.go gih/main.go

File renamed without changes.

0 commit comments

Comments
 (0)