Comments (7)
@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.
@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.
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.
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.
from xi-mac.
@belak @jansol let me know if this looks like an improvement: #61
from xi-mac.
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)
- autosave triggers HOT 11
- Xcode colorscheme HOT 3
- xi --wait does not return after application exit HOT 1
- update to swift 5 HOT 9
- Doesn't compile for Swift 5 HOT 13
- Change default find highlight color HOT 2
- package ID specification `xi-syntect-plugin` matched no packages
- build-rust-xcode.sh fails with Permission denied (os error 13) HOT 6
- Status Bar hiding last line HOT 3
- Scroll bars disappearing when switching from different application HOT 3
- Drag events cause file to be opened HOT 1
- Wrong top margin with statusbar -- first visible line is not rendered
- Crash when deleting (backspace) selection HOT 2
- Line numbers become bogus when scrolling HOT 1
- xcodebuild error (Xcode 11.3.1) HOT 14
- (Save) Dialog Overshoots Window in Splitwindow mode (macOS Catalina)
- Where is built .app? HOT 1
- No text is displayed at all
- no such module 'ArgumentParser' HOT 9
- xcodebuild fails on Mac Version OS 12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xi-mac.