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

Some more fixes #6

Closed
wants to merge 4 commits into from
Closed

Some more fixes #6

wants to merge 4 commits into from

Conversation

tomassedovic
Copy link
Contributor

I created a hello-world repo, put this in my cargo-lite.conf:

deps = [
    ["--git", "http://github.com/bjz/gl-rs.git"]
,   ["--git", "http://github.com/bjz/glfw-rs.git"] # bjz so amaze?
]

[build]
crate_file = "src/main.rs"

typed cargo-lite.py install, saw a few failures and fixed them. Not sure whether my usage is correct or if the gl* repos have the right stuff in their cargo-lite.conf files.

In case these are genuine bugs, feel free to merge them :-).

When looking for cargo-lite.conf in a subpackage, the code failed to find it
because it both `cd`d into the subpackage directory and then tried to look for
`path.join(subpackage_dir, 'cargo-lite.conf')`.

I.e. instead of looking for `src/gl/cargo-lite.conf` it looked for `src/gl/src/gl/cargo-lite.conf`.
Some projects don't have a master crate but provide subpackages instead. Let's
not fail if the `[build]` section's missing but `[subpackages]` is present.
When running the custom build command fails, this prints out a correct error
message, return code, stdout and stderr.
@emberian
Copy link
Owner

Hi Tomas! I'd had a bunch of fixes I forgot to push that I've pushed now. I think most of these had been fixed... Sorry for the inconvenience :(

@emberian
Copy link
Owner

Closed by 83e19eb

@emberian emberian closed this Jan 29, 2014
@tomassedovic
Copy link
Contributor Author

Ah, no worries! This is looking pretty useful.

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.

2 participants