Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitshifted/launchcode #1157

Open
vorburger opened this issue Mar 2, 2025 · 0 comments
Open

bitshifted/launchcode #1157

vorburger opened this issue Mar 2, 2025 · 0 comments

Comments

@vorburger
Copy link
Member

https://github.com/bitshifted/launchcode

With this in tools/bitshifted/config-file.yaml:

common:
  jre-dir: TODO
  classpath:  bazel-bin/java/dev/enola/cli/enola_deploy.jar
  main-class: dev.enola.cli.EnolaApplication

and:

$ b build //java/dev/enola/cli:enola_deploy.jar
$ mkdir site/bitshifted
$ podman run -v {$PWD}:/workspace:Z ghcr.io/bitshifted/launchcode:2.2.4 tools/bitshifted/config-file.yaml site/bitshifted

I get:

Using configuration file tools/bitshifted/config-file.yaml
Failed to write configuration: mkdir output: permission denied
Configuration created successfully!
Initializing launchers build environment
go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
go: downloading github.com/josephspurrier/goversioninfo v1.4.1
go: downloading github.com/akavel/rsrc v0.10.2
go: added github.com/akavel/rsrc v0.10.2
go: added github.com/josephspurrier/goversioninfo v1.4.1
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo
mkdir -p /usr/src/launchcode/dist
Building Linux launchers...
removed '/usr/src/launchcode/config/embed/addmodules.txt'
removed '/usr/src/launchcode/config/embed/args.txt'
removed '/usr/src/launchcode/config/embed/classpath.txt'
removed '/usr/src/launchcode/config/embed/jar.txt'
removed '/usr/src/launchcode/config/embed/jvm-dir'
removed '/usr/src/launchcode/config/embed/jvmopts.txt'
removed '/usr/src/launchcode/config/embed/jvmprops.txt'
removed '/usr/src/launchcode/config/embed/mainclass.txt'
removed '/usr/src/launchcode/config/embed/module.txt'
removed '/usr/src/launchcode/config/embed/modulepath.txt'
removed '/usr/src/launchcode/config/embed/restart-code'
removed '/usr/src/launchcode/config/embed/splash.txt'
cp: cannot stat '/workspace/output/linux/*': No such file or directory
go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo
mkdir -p /usr/src/launchcode/dist
cd /usr/src/launchcode/cmd/launchcode && \
env GOOS=linux GOARCH=amd64 go build -trimpath  -buildvcs=false -o /usr/src/launchcode/dist/launchcode-linux-x64 && \
env GOOS=linux GOARCH=arm64 go build -trimpath  -buildvcs=false -o /usr/src/launchcode/dist/launchcode-linux-aarch64
../../config/optionBuilder.go:27:13: pattern embed/addmodules.txt: no matching files found
make: *** [Makefile:33: build-linux] Error 1
Linux launcher built successfully!
Building Mac OS launchers...
rm: cannot remove '/usr/src/launchcode/config/embed/*': No such file or directory
cp: cannot stat '/workspace/output/mac/*': No such file or directory
go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo
mkdir -p /usr/src/launchcode/dist
cd /usr/src/launchcode/cmd/launchcode && \
env GOOS=darwin  GOARCH=amd64 go build -trimpath  -buildvcs=false -o /usr/src/launchcode/dist/launchcode-mac-x64 && \
env GOOS=darwin  GOARCH=arm64 go build -trimpath  -buildvcs=false -o /usr/src/launchcode/dist/launchcode-mac-aarch64
../../config/optionBuilder.go:27:13: pattern embed/addmodules.txt: no matching files found
make: *** [Makefile:38: build-mac] Error 1
Mac OS launcher built sucessfully
Building Windows launchers...
rm: cannot remove '/usr/src/launchcode/config/embed/*': No such file or directory
cp: cannot stat '/workspace/output/windows/*': No such file or directory
Error: open tools/bitshifted/config-file.yaml: no such file or directory
Using default Windows icon
go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo
mkdir -p /usr/src/launchcode/dist
cd /usr/src/launchcode/cmd/launchcode && \
go generate ./... && \
env GOOS=windows GOARCH=amd64 go build -trimpath  -buildvcs=false -ldflags -H=windowsgui -o /usr/src/launchcode/dist/launchcode-windows-x64.exe
../../config/optionBuilder.go:27:13: pattern embed/addmodules.txt: no matching files found
make: *** [Makefile:43: build-windows] Error 1
Windows launcher built sucessfully
cp: cannot stat '/usr/src/launchcode/dist/*': No such file or directory
chown: changing ownership of 'site/bitshifted': Operation not permitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant