From 35c645e537c5a474b9ff26c41fa336229a7ad6c0 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 27 Oct 2023 13:21:27 -0400 Subject: [PATCH] fix(encore) closes #3866 --- projects/encore.dev/package.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/projects/encore.dev/package.yml b/projects/encore.dev/package.yml index 36057044..7df3e892 100644 --- a/projects/encore.dev/package.yml +++ b/projects/encore.dev/package.yml @@ -12,6 +12,8 @@ provides: runtime: env: ENCORE_RUNTIME_PATH: ${{prefix}}/runtime + # https://github.com/encoredev/encore/pull/894 + ENCORE_RUNTIMES_PATH: ${{prefix}}/runtimes dependencies: encore.dev/go: ^1.21 @@ -21,7 +23,12 @@ build: - go mod download - go build $ARGS -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/encore ./cli/cmd/encore - go build $ARGS -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/git-remote-encore ./cli/cmd/git-remote-encore - - cp -a runtime {{prefix}} + - run: cp -a runtime "{{prefix}}" + if: <1.28.0 + - run: | + cp -a runtimes "{{prefix}}" + ln -s runtimes/go "{{prefix}}/runtime" + if: '>=1.28.0' env: GO111MODULE: on ARGS: