-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add binary_relocation: false
#428
Comments
So I started playing around with pixi that other day, attempting to put together a dev env for my team. This is my recipe. # yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
context:
version: "1.5.4"
package:
name: lefthook
version: ${{ version }}
source:
- if: linux and x86_64
then:
url: https://github.com/evilmartians/lefthook/releases/download/v${{ version }}/lefthook_${{ version }}_Linux_x86_64
sha256: 1a359b807fe6dec3f796a62c436348749697571a992cd24c3f646529e20bce71
- if: osx and x86_64
then:
url: https://github.com/evilmartians/lefthook/releases/download/v${{ version }}/lefthook_${{ version }}_MacOS_x86_64
sha256: c26d50de48d3c4e70fb5ba629f0906b5a3effbb73f7daef2688ff4f4625cc8d2
- if: osx and arm64
then:
url: https://github.com/evilmartians/lefthook/releases/download/v${{ version }}/lefthook_${{ version }}_MacOS_arm64
sha256: 358be965ed88a52c53e7cdc8d8d4f5e95d592f07d9ab1015483ac2c9520d2490
- if: win and x86_64
then:
url: https://github.com/evilmartians/lefthook/releases/download/v${{ version }}/lefthook_${{ version }}_Windows_x86_64.exe
sha256: 5e27ecf5a78b13f8b3b23faf938da2f28a7310a98475a60bfc782fe1becb5132
build:
script:
- mkdir -p $PREFIX/bin
- mv ./lefthook* $PREFIX/bin/lefthook
- chmod +x $PREFIX/bin/lefthook
test:
commands:
- test "$(lefthook version)" = "1.5.4" But I get this error from patchelf: Now perhaps the manner in which I have written my recipe is not the typical workflow. ie: I'm not building anything just downloading an already built binary. But I guess the outcome would be the same if I had done the go build myself & set So yeah the ability to disable this binary relocation step seems sensible. That is whats causing my problem right? |
When repackaging binaries, it makes sense to enable |
I think there are two things:
|
@brad-jones I think this should fix your issue: #443 |
Can confirm this works. Couple of things I noticed though. Your versioning in the github releases appears to be out of sync? Anyway I downloaded the new rattler-build binary from https://github.com/prefix-dev/rattler-build/actions/runs/7309118178 |
Fixed with #424 but in the 0.6.1 case, only the version number is broken, the rest works.
That's why the issue itself is still open 😄 |
Would be nice to be able to disable binary relocation.
The text was updated successfully, but these errors were encountered: