Skip to content

Commit

Permalink
move cmd to subfolder (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
nieomylnieja authored Dec 6, 2023
1 parent 45bdaf2 commit 208458d
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ WORKDIR /app

COPY ./go.mod ./go.sum ./
COPY ./*.go ./
COPY ./cmd/ ./cmd
COPY ./internal/ ./internal
COPY ./cmd/go-libyear ./cmd/go-libyear
COPY ./internal ./internal

ARG LDFLAGS

RUN CGO_ENABLED=0 go build \
-ldflags "${LDFLAGS}" \
-o /artifacts/go-libyear \
"${PWD}/cmd"
"${PWD}/cmd/go-libyear"

FROM scratch

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MAKEFLAGS += --silent --no-print-directory

APP_NAME := go-libyear
BIN_DIR := ./bin
MAIN_DIR := ./cmd
MAIN_DIR := ./cmd/$(APP_NAME)
TEST_DIR := ./test

ifdef TERM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ or install
with Go:

```shell
go install github.com/nieomylnieja/go-libyear@latest
go install github.com/nieomylnieja/go-libyear/cmd/go-libyear@latest
```

It can also be built directly from this repository:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 208458d

Please sign in to comment.