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

Check target with rustc directly #225

Merged
merged 3 commits into from
Jul 7, 2021
Merged

Check target with rustc directly #225

merged 3 commits into from
Jul 7, 2021

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jul 6, 2021

To avoid depending on rustup (at least when not cross-compiling)

Fixes element-hq/element-web#17885

To avoid depending on rustup (at least when not cross-compiling)
@dbkr dbkr requested a review from a team July 6, 2021 18:03
@jryans
Copy link
Contributor

jryans commented Jul 6, 2021

Hmm, are there cases where people don’t have rustup? Oh is that what Homebrew installation does? Strange, I’ve never used rust without rustup… 😅

@dbkr
Copy link
Member Author

dbkr commented Jul 6, 2021

yeah - one of our packagers just builds in a rust environment without rustup, so they had to patch the check out to make it work again (and also I'd installed homebrew rust without rustup but might have to go rustup now anyway if I want multiple toolchains)

@jryans jryans requested review from jryans and removed request for a team July 7, 2021 09:11
Copy link
Contributor

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this! I learned that people don't always use rustup, which was news to me. 😅

Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
@dbkr dbkr merged commit eed1252 into develop Jul 7, 2021
@taw00
Copy link

taw00 commented Jul 7, 2021

I'm the packager who tripped over this.

For context: packagers (me included) who build packages in the more traditional way (RPMs, DEBs, etc) avoid using upstream libraries, toolchains, and such as much as possible and instead make every effort to rely on OS supplied and vetted components. rustup is not included in, for example, RHEL, CentOS, and Fedora's OS-shipped rust build environments, for all the obvious reasons. If you are building in those environments, you wait for the OS vender to go through their process of vetting and blessing the language toolchain and their updates.

In an ideal, most secure, build environment, the build system would also have zero access to the internet and all components necessary for the build would be in place, curated, and available locally. Node makes this really REALLY challenging, but we (community packagers) make certain compromises. :)

I hope that helps give color to this particular variety of issue. Cheers. -todd

@TheJJ
Copy link

TheJJ commented Jul 19, 2021

I'm another packager who tipped over this, building for Gentoo, I had also patched away the check, thanks for the proper fix.

I just depend on the system-installed rust version, so no rustup involved.

I can only second what @taw00 says, the node+rust+... ecosystems make it very challenging properly packaging things especially without internet access...

@t3chguy t3chguy deleted the dbkr/no_rustup branch May 3, 2022 10:00
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.

Desktop build process now depends on rustup
4 participants