-
Notifications
You must be signed in to change notification settings - Fork 71
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
Improve building experience for packagers #421
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on the nix overlay! 🔥 🔥 🔥
Thanks for posting your changes here.
I've left one nitpick below.
Sorry I missed your comment. I will fix it tomorrow and update the pr. |
6397a96
to
66579ad
Compare
@fracek Hey! I'm back from being offline and I wanted to actually elaborate on this.
That's great part
This is something I have mixed feelings about. Although indeed we build successfully on 1.64, we do not want to guarantee it. We definitely want to have a possibility to use newer Rust features ( I would like to revert this part of this PR if possible, but beforehand we have to align ourselves, and thus my question is: why cannot you use latest Rust stable in your environment? |
Allowing an older version of the compiler makes the life of the packager easier because some distributions are slower at updating cargo. In my case it means I don't have to require users to use nix unstable and they can use the latest tagged release (23.05). |
Hmm, so do I understand correctly that you are building Scarb yourself? I don't think that's gonna be a good idea long term, because we plan to keep an organised directory structure of Scarb installation and allow us to keep some assets in future releases. We have our build scripts for this reason, and we'd like to reserve us a space for doing changes here or assumptions and so... I wonder if it would make sense for you to just pull binaries built by us. Like, treat Scarb as closed-source software where you only have binaries at hand here. Would that work for you? This way we could still use whatever Rust toolchain we want without interrupting you. |
As a general rule, distributions don't allow to pull binaries especially if it's possible to build from source (it's not safe to download binaries from the internet). Part of the packager's job is to understand the package and adapt it to the target distribution, so if you have any specific asset folders then they would place them it the correct directory (super easy if you follow the xdg convention). My change to the cargo version was mostly to simplify the life for someone building scarb for ubuntu and other lts distros, obviously it's fine if you bump the minimum required version to 1.70 when you need it. |
That's fine, but we also may end up writing new things,
OK, if doing this is fine for you, then it's great for us :) Thank you! |
I think that's fine since it's after installation.You should always do things in a way that makes sense for scarb and if they pose an issue for packaging I'll open an issue and propose an alternative solution. |
Perfect! Thank you again for explaining all of this :) |
Hello,
I'm building a nix overlay for Cairo that also builds scarb. I noticed a couple of issues while packaging scarb, this PR fixes them.