-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
F-Droid can't build #8987
Comments
The hope was that setting It shouldn't require Java 17. We generally use Java 11. |
@raggi, can you assist? |
|
We do now require a more recent Java than 11. We're using 17 in our builds. The gradle releases supporting Java 11 are no longer in maintenance, and I upgraded gradle as part of maintenance to bring our build toolchain up to a supported version, which includes moving away from jcenter, that is in shutdown. @licaon-kter I was aware that the Makefile refactoring would have some impact. I'd be happy to make some more best-effort to coordinate on those kinds of changes. If there's some good way to reach out to do that, let me know. The error in the output here appears to be from the Go toolchain. Tailscale tracks Go very closely, and is now using 1.21 features, in particular here the introduction of the slices package to the stdlib. I believe part of the error output being less than ideal stems from my not having bumped the toolchain version in go.mod. That was done in tailscale/tailscale-android@88d006f |
We're on Github, Gitlab and Codeberg at least, ping us :) |
Yes, but I guess the error message is clear, |
This should provide an earlier error for cases such as tailscale/tailscale#8987 if the error comes from a failure to fetch the toolchain, or a change that forces an alternative GOROOT by some other means. Updates tailscale/tailscale#8987
@licaon-kter based on this line here: https://gitlab.com/fdroid/fdroiddata/-/blob/8cb6d1fcc173478eee95ca67254ccff952959a89/metadata/com.tailscale.ipn.yml#L1003 it looks like TOOLCHAINDIR may be one directory too low, the flag expects it to be equivalent to a GOROOT path, i.e. it needs to include that |
What's next? |
Thanks @licaon-kter, per the above, the line:
Should be adjusted in your source-build layout like so:
This is a change from the past - earlier versions of this build unpacked our binary distributions of our go toolchain into a directory with a subdirectory called TOOLCHAINDIR now has equivalent expectations to GOROOT, i.e. what is typically in that directory is:
rather than just The I don't have a build setup locally yet, but https://gitlab.com/fdroid/fdroiddata/-/merge_requests/13641 may be close. |
@licaon-kter the above patch is making it further, but I kicked off another test substituting in bash -x to execute gradlew to gather some more information. |
This should provide an earlier error for cases such as tailscale/tailscale#8987 if the error comes from a failure to fetch the toolchain, or a change that forces an alternative GOROOT by some other means. Updates tailscale/tailscale#8987
And the above was merged! thanks for the bug and pointers @licaon-kter |
What is the issue?
Looks like Java 17 is now needed, per https://monitor.f-droid.org/builds/log/com.tailscale.ipn/176#site-footer
Ok, let's add that... oh... Makefile has been redone drastically... let me try...
umm, looks good but
Which
make
command should I use exactly? Why is Go failing? full log:com.tailscale.ipn_176.log.gz
/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/8cb6d1fcc173478eee95ca67254ccff952959a89
The text was updated successfully, but these errors were encountered: