Skip to content

Commit

Permalink
chore: adjust main.go path everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiught committed Jan 26, 2024
1 parent db96685 commit b033fa1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM cgr.dev/chainguard/go:1.20@sha256:8454bbbb4061bd8fed6ce0b6de0d08c0a6037fe33
WORKDIR /app

COPY . .
RUN CGO_ENABLED=0 go build -o fga ./main.go
RUN CGO_ENABLED=0 go build -o fga ./cmd/fga/main.go

FROM cgr.dev/chainguard/static@sha256:ee47224a2afc674c1f1089b9dea97d5ee400cf2fff3797398778450a4cfb2a8d

Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ before:

builds:
-
main: ./main.go
main: ./cmd/fga/main.go
binary: fga
env:
- CGO_ENABLED=0
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $(GO_BIN)/gofumpt:

$(BUILD_DIR)/$(BINARY_NAME):
@echo "==> Building binary within ${BUILD_DIR}/${BINARY_NAME}"
@go build -v -o ${BUILD_DIR}/${BINARY_NAME} main.go
@go build -v -o ${BUILD_DIR}/${BINARY_NAME} ./cmd/fga/main.go

$(GO_BIN)/mockgen:
@echo "==> Installing mockgen within ${GO_BIN}"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Make sure you have Go 1.20 or later installed. See the [Go downloads](https://go
2. Then use the build command:

```bash
go build -o ./dist/fga main.go
go build -o ./dist/fga ./cmd/fga/main.go
```

or if you have `make` installed, just run:
Expand Down
4 changes: 2 additions & 2 deletions scripts/completions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ rm -rf "$OUTPUT_DIR"
mkdir -p "$OUTPUT_DIR"

for sh in bash zsh fish; do
go run main.go completion "$sh" >"${OUTPUT_DIR}/fga.$sh"
done
go run ./cmd/fga/main.go completion "$sh" >"${OUTPUT_DIR}/fga.$sh"
done

0 comments on commit b033fa1

Please sign in to comment.