Skip to content

Commit 07f7da8

Browse files
authored
chore: Fix Build Core Binary From Package Directory, Not Single File (#723)
Signed-off-by: Prasanth Baskar <prasanth@8gears.com>
1 parent c04a198 commit 07f7da8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

devenv/air.core.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tmp_dir = "tmp"
88
[build]
99
# Fast build by default. Set DEBUG=true to enable Delve step-through debugging:
1010
# docker compose exec core env DEBUG=true air -c devenv/air.core.toml
11-
cmd = "cd src && CGO_ENABLED=0 GOMODCACHE=/go/pkg/mod /usr/local/go/bin/go build ${DEBUG:+-gcflags=all='-N -l'} -trimpath -o ../tmp/core ./core/main.go"
11+
cmd = "cd src && CGO_ENABLED=0 GOMODCACHE=/go/pkg/mod /usr/local/go/bin/go build ${DEBUG:+-gcflags=all='-N -l'} -trimpath -o ../tmp/core ./core/"
1212

1313
bin = "tmp/core"
1414
args_bin = []

taskfile/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ tasks:
7777
- task: _go-build
7878
vars:
7979
PLATFORM: '{{index .MATCH 0}}'
80-
MAIN_PATH: ./core/main.go
80+
MAIN_PATH: ./core/
8181
OUTPUT_NAME: core
8282

8383
binary:jobservice:*:

0 commit comments

Comments
 (0)