This is an automated email from the ASF dual-hosted git repository.
tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 9e9ee2901e3 NO-ISSUE: Add missing build flag for the
dev-deployment-upload-service (#2367)
9e9ee2901e3 is described below
commit 9e9ee2901e349f163f1b84f1166d19880a9fcad3
Author: Thiago Lugli <[email protected]>
AuthorDate: Thu May 23 23:40:35 2024 -0300
NO-ISSUE: Add missing build flag for the dev-deployment-upload-service
(#2367)
---
packages/dev-deployment-base-image/Containerfile | 2 +-
packages/dev-deployment-upload-service/Makefile | 8 ++++----
packages/dev-deployment-upload-service/package.json | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/packages/dev-deployment-base-image/Containerfile
b/packages/dev-deployment-base-image/Containerfile
index a64b2529840..20b8dc1eb97 100644
--- a/packages/dev-deployment-base-image/Containerfile
+++ b/packages/dev-deployment-base-image/Containerfile
@@ -37,7 +37,7 @@ RUN microdnf --disableplugin=subscription-manager install -y
tar gzip \
&& mkdir -p -m 777 /tmp/app \
&& mkdir -p -m 777 /.m2
-COPY dist-dev/dev-deployment-upload-service /usr/local/bin
+COPY dist-dev/dev-deployment-upload-service /usr/local/bin/
COPY .mvn $HOME_PATH/app/.mvn
COPY mvnw $HOME_PATH/app
diff --git a/packages/dev-deployment-upload-service/Makefile
b/packages/dev-deployment-upload-service/Makefile
index 1103cd9701c..0b57edda99d 100644
--- a/packages/dev-deployment-upload-service/Makefile
+++ b/packages/dev-deployment-upload-service/Makefile
@@ -4,19 +4,19 @@ DDUS_VERSION?=0.0.0
build-all: linux-amd64 darwin-amd64 darwin-arm64 win32-amd64 checksum
linux-amd64:
- cross-env GOOS=linux GOARCH=amd64 go build -ldflags $(LDFLAGS) -o
dist/dev-deployment-upload-service-linux-amd64 main.go
+ cross-env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags
$(LDFLAGS) -o dist/dev-deployment-upload-service-linux-amd64 main.go
tar -zcvf
dist/dev-deployment-upload-service-linux-amd64-$(DDUS_VERSION).tar.gz -C dist
dev-deployment-upload-service-linux-amd64
darwin-amd64:
- cross-env GOOS=darwin GOARCH=amd64 go build -ldflags $(LDFLAGS) -o
dist/dev-deployment-upload-service-darwin-amd64 main.go
+ cross-env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags
$(LDFLAGS) -o dist/dev-deployment-upload-service-darwin-amd64 main.go
tar -zcvf
dist/dev-deployment-upload-service-darwin-amd64-$(DDUS_VERSION).tar.gz -C dist
dev-deployment-upload-service-darwin-amd64
darwin-arm64:
- cross-env GOOS=darwin GOARCH=arm64 go build -ldflags $(LDFLAGS) -o
dist/dev-deployment-upload-service-darwin-arm64 main.go
+ cross-env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags
$(LDFLAGS) -o dist/dev-deployment-upload-service-darwin-arm64 main.go
tar -zcvf
dist/dev-deployment-upload-service-darwin-arm64-$(DDUS_VERSION).tar.gz -C dist
dev-deployment-upload-service-darwin-arm64
win32-amd64:
- cross-env GOOS=windows GOARCH=amd64 go build -ldflags $(LDFLAGS) -o
dist/dev-deployment-upload-service-windows-amd64.exe main.go
+ cross-env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags
$(LDFLAGS) -o dist/dev-deployment-upload-service-windows-amd64.exe main.go
tar -zcvf
dist/dev-deployment-upload-service-windows-amd64-$(DDUS_VERSION).tar.gz -C dist
dev-deployment-upload-service-windows-amd64.exe
checksum:
diff --git a/packages/dev-deployment-upload-service/package.json
b/packages/dev-deployment-upload-service/package.json
index 95afd3e580b..9c60e5b198f 100644
--- a/packages/dev-deployment-upload-service/package.json
+++ b/packages/dev-deployment-upload-service/package.json
@@ -30,7 +30,7 @@
"start-test-servers": "run-script-if --bool \"$(build-env
containerImages.build)\" --then \"node scripts/runTestServers.js\"",
"stop-test-servers": "run-script-if --bool \"$(build-env
containerImages.build)\" --then \"node scripts/runTestServers.js --cleanup\"",
"test": "run-script-os",
- "test:linux": "run-script-if --bool \"$(build-env containerImages.build)\"
--bool \"$(build-env tests.run)\" --ignore-errors \"$(build-env
tests.ignoreFailures)\" --then \"jest --verbose --silent=false\"",
+ "test:linux": "run-script-if --bool \"$(build-env containerImages.build)\"
--bool \"$(build-env endToEndTests.run)\" --ignore-errors \"$(build-env
tests.ignoreFailures)\" --then \"jest --verbose --silent=false\"",
"test:win32:darwin": "echo 'Not supported'"
},
"devDependencies": {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]