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

Compile standalone binary #275

Open
abitrolly opened this issue Dec 18, 2023 · 7 comments · May be fixed by #310
Open

Compile standalone binary #275

abitrolly opened this issue Dec 18, 2023 · 7 comments · May be fixed by #310

Comments

@abitrolly
Copy link

How to compile the project into a single binary that doesn't require Java o be installed?

@alexeagle
Copy link

@mikelalcon hi from Bazel maintainer - I trip over this at clients regularly. Forcing users to build your application from source is fraught with perils, such as polluting their @maven namespace with versions of libraries you use, requiring Java on their PATH when rules_jvm_external is non-hermetic, slower, harder to install, and more.

Would you be interested in a PR to add some automation here that publishes an uberjar for each release? If not I may create a separate repo in the spirit of https://github.com/aspect-build/bsdtar-prebuilt that publishes this, since I need it frequently.

@abitrolly
Copy link
Author

@alexeagle I don't think any release related work is gonna happen - see this comment #273 (comment) from @hsudhof. So a separate repo looks like the only option.

@alexeagle
Copy link

Okay, that's not surprising, thanks for tracking that down. I agree that won't work - and Google Cloud Build is a non-starter since they won't give non-googlers access to needed bits.

@mikelalcon
Copy link
Collaborator

I think we should have some kind of release, but we cannot offer version compatibility for now.

I let @hsudhof decide if we do it.

@abitrolly
Copy link
Author

@mikelalcon @hsudhof did you come to any conclusion? I think version compatibility is not needed at this point. For now monthly copybara:2025-01 and copybara:latest images would be enough for 100% of us. :D

@mikelalcon
Copy link
Collaborator

Let me ask internally how hard would be to put something together.

mikelalcon added a commit that referenced this issue Jan 23, 2025
Fixes #275

Change-Id: Id7c7716d0b4dcc3f75d872d9945fd43d056df1ca
@mikelalcon mikelalcon linked a pull request Jan 23, 2025 that will close this issue
@mikelalcon
Copy link
Collaborator

@alexeagle how does #310 look ?

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

Successfully merging a pull request may close this issue.

3 participants