GithubHelp home page GithubHelp logo

Comments (7)

belak avatar belak commented on June 30, 2024 1

@mitchhentges Unfortunately, if you're building directly from xcode, you won't have the environment variables in that instance. The PR cmyr mentioned looks like the best option at the moment.

from xi-mac.

cmyr avatar cmyr commented on June 30, 2024

@belak okay noted, I wasn't sure what the best approach to this was. (I'm still not). All we're really interested in is making sure cargo is in our path, I think. I'm not sure what the elegant solution is.. 😒

from xi-mac.

belak avatar belak commented on June 30, 2024

Potentially you could check if cargo is on the PATH and if it isn't, there would be a config file somewhere which would specify the location.

from xi-mac.

jansol avatar jansol commented on June 30, 2024

How about checking if CARGO_HOME is set and if it isn't ask the user to set it before building, potentially with a .env file. KISS.

from xi-mac.

belak avatar belak commented on June 30, 2024

from xi-mac.

cmyr avatar cmyr commented on June 30, 2024

@belak @jansol let me know if this looks like an improvement: #61

from xi-mac.

mitchhentges avatar mitchhentges commented on June 30, 2024

Hey, maybe you don't need to source either bash_profile or zshrc. Whatever shell the user is using, if its rc file adds cargo to the path (or sets CARGO_HOME), then build-rust-xcode.sh has all the information it needs. If the necessary variables aren't set, then sourcing the rc file again (bash_profile or zshrc) won't have an effect, right?

I can make a PR to remove the source lines, if that makes sense.

from xi-mac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.