Skip to content

Support Trunk#129

Closed
azzamsa wants to merge 1 commit intotaiki-e:mainfrom
azzamsa:support-trunk
Closed

Support Trunk#129
azzamsa wants to merge 1 commit intotaiki-e:mainfrom
azzamsa:support-trunk

Conversation

@azzamsa
Copy link
Contributor

@azzamsa azzamsa commented Jun 7, 2023

Fixes #128

@taiki-e I don't have a clue on where to get the manifest/trunk.json

@NobodyXu

This comment was marked as outdated.

@azzamsa
Copy link
Contributor Author

azzamsa commented Jun 8, 2023

It runs but doesn't generate the manifest.

⬢ ❯ ./tools/manifest.sh trunk 0.16.0
    Finished release [optimized] target(s) in 0.04s
     Running `target/release/install-action-internal-codegen trunk 0.16.0`
downloading releases of https://github.com/thedodd/trunk from https://api.github.com/repos/thedodd/trunk/releases
update manifest for versions '=0.16.0'
no asset '["trunk-x86_64-unknown-linux-musl.tar.gz"]' for host platform 'x86_64_linux_musl'
downloading https://github.com/thedodd/trunk/releases/download/v0.16.0/trunk-x86_64-apple-darwin.tar.gz for checksum...
  downloaded complete
getting sha256 hash for https://github.com/thedodd/trunk/releases/download/v0.16.0/trunk-x86_64-apple-darwin.tar.gz
0638206b8b3bd27a92b2dd252cca0560e01c8351755d6212a3278ac0047b58b5 *trunk-x86_64-apple-darwin.tar.gz
downloading https://github.com/thedodd/trunk/releases/download/v0.16.0/trunk-x86_64-pc-windows-msvc.zip for checksum...
 downloaded complete
getting sha256 hash for https://github.com/thedodd/trunk/releases/download/v0.16.0/trunk-x86_64-pc-windows-msvc.zip
0febcccfa58cd5e62eacd8a934ef6967f845a0a01ef7e42cecdf50348a309b5e *trunk-x86_64-pc-windows-msvc.zip
no asset '["trunk-aarch64-unknown-linux-musl.tar.gz"]' for host platform 'aarch64_linux_musl'
no asset '["trunk-aarch64-apple-darwin.tar.gz"]' for host platform 'aarch64_macos'
Error: platform list in base manifest for trunk contains x86_64_linux_musl, but latest release (0.16.0) doesn't contain it

@azzamsa azzamsa force-pushed the support-trunk branch 2 times, most recently from 410b211 to 2b98276 Compare June 8, 2023 05:25
@NobodyXu
Copy link
Collaborator

NobodyXu commented Jun 8, 2023

@azzamsa trunks pre-built seems to use glibc 2.29, while ubuntu 20.04 uses old glibc

@NobodyXu
Copy link
Collaborator

NobodyXu commented Jun 8, 2023

Alpine failed because trunk does not provide x86_64-unknown-linux-musl build.

@NobodyXu
Copy link
Collaborator

NobodyXu commented Jun 8, 2023

I think the best way to resolve this is for trunk to provide pre-built artifacts for musl and for install-action to also use musl artifacts on gnu targets.

@azzamsa
Copy link
Contributor Author

azzamsa commented Jun 8, 2023

I think the best way to resolve this is for trunk to provide pre-built artifacts for musl and for install-action to also use musl artifacts on gnu targets.

You mean, we need to convince (or make a PR) to Trunk to include musl target in the release?

@NobodyXu
Copy link
Collaborator

NobodyXu commented Jun 8, 2023

I think the best way to resolve this is for trunk to provide pre-built artifacts for musl and for install-action to also use musl artifacts on gnu targets.

You mean, we need to convince (or make a PR) to Trunk to include musl target in the release?

Yes, otherwise it won't work on Alpine.
I recommend either installing musl-tools or use cargo-zigbuild to achieve this, the latter also support cross compiling to armv7/aarch64 linux gnu/musl.

It would also be great if you can change their ci to use ubuntu-20.04, which will guarantee that their pre-built artifacts for x86_64-unknown-gnu can run on our CI.

@azzamsa
Copy link
Contributor Author

azzamsa commented Oct 13, 2023

I don't think I can make Trunk compile in musl target.

@azzamsa azzamsa closed this Oct 13, 2023
@taiki-e
Copy link
Owner

taiki-e commented Dec 25, 2024

musl support is not required...
See DEVELOPMENT.md for how to deal with such an error.

@azzamsa azzamsa mentioned this pull request Dec 25, 2024
@azzamsa
Copy link
Contributor Author

azzamsa commented Dec 25, 2024

Something like this #795

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 this pull request may close these issues.

Support Trunk

3 participants