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

Move the root Cargo.toml to components/servo, and warn when Cargo is run directly #4140

Merged
merged 7 commits into from Dec 3, 2014

Conversation

@SimonSapin
Copy link
Member

SimonSapin commented Nov 28, 2014

This fixes #3957, and allow #4115 not to regress #4099.

@SimonSapin
Copy link
Member Author

SimonSapin commented Nov 28, 2014

The output of cargo build looks like

   Compiling not-the-toml-you-re-looking-for v0.0.1 (file:///home/simon/projects/servo)
Failed to run custom build command for `not-the-toml-you-re-looking-for v0.0.1 (file:///home/simon/projects/servo)`
Process didn't exit successfully: `/home/simon/projects/servo/target/build/not-the-toml-you-re-looking-for-bbedc97bda2e30a8/build-script-not-the-toml-you-re-looking-for` (status=1)
--- stderr


    This is not the `Cargo.toml` file you're looking for.
    Invoke Cargo through mach instead, e.g. `./mach build`.


Feel free to suggest changes to the error message.

@hoppipolla-critic-bot
Copy link

hoppipolla-critic-bot commented Dec 2, 2014

Critic review: https://critic.hoppipolla.co.uk/r/3342

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

bors-servo pushed a commit that referenced this pull request Dec 2, 2014
This fixes #3957, and allow #4115 not to regress #4099.
bors-servo pushed a commit that referenced this pull request Dec 2, 2014
This fixes #3957, and allow #4115 not to regress #4099.
bors-servo pushed a commit that referenced this pull request Dec 3, 2014
This fixes #3957, and allow #4115 not to regress #4099.
bors-servo pushed a commit that referenced this pull request Dec 3, 2014
This fixes #3957, and allow #4115 not to regress #4099.
SimonSapin added 6 commits Nov 28, 2014
`ports/android/glut` relies on it executing on the current directory.
There are none, but the contenttest program fails with:

```
task '<main>' panicked at 'Required option 'source-dir' missing.', ../../tests/contenttest.rs:48
```
@SimonSapin SimonSapin force-pushed the SimonSapin:no-root-cargo-toml branch from 8e15b5f to 9bbc633 Dec 3, 2014
@Manishearth

This comment has been minimized.

Copy link

Manishearth commented on 9bbc633 Dec 3, 2014

r+

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented on 9bbc633 Dec 3, 2014

saw approval from Manishearth
at SimonSapin@9bbc633

This comment has been minimized.

Copy link
Contributor

bors-servo replied Dec 3, 2014

merging SimonSapin/servo/no-root-cargo-toml = 9bbc633 into auto

This comment has been minimized.

Copy link
Contributor

bors-servo replied Dec 3, 2014

SimonSapin/servo/no-root-cargo-toml = 9bbc633 merged ok, testing candidate = 2de1835

This comment has been minimized.

Copy link
Contributor

bors-servo replied Dec 3, 2014

bors-servo pushed a commit that referenced this pull request Dec 3, 2014
This fixes #3957, and allow #4115 not to regress #4099.
@SimonSapin

This comment has been minimized.

Copy link
Owner Author

SimonSapin commented on e1c2210 Dec 3, 2014

r+

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented on e1c2210 Dec 3, 2014

saw approval from SimonSapin
at SimonSapin@e1c2210

This comment has been minimized.

Copy link
Contributor

bors-servo replied Dec 3, 2014

merging SimonSapin/servo/no-root-cargo-toml = e1c2210 into auto

This comment has been minimized.

Copy link
Contributor

bors-servo replied Dec 3, 2014

SimonSapin/servo/no-root-cargo-toml = e1c2210 merged ok, testing candidate = 873ca6c

This comment has been minimized.

Copy link
Contributor

bors-servo replied Dec 3, 2014

fast-forwarding master to auto = 873ca6c

bors-servo pushed a commit that referenced this pull request Dec 3, 2014
This fixes #3957, and allow #4115 not to regress #4099.
@bors-servo bors-servo closed this Dec 3, 2014
@bors-servo bors-servo merged commit e1c2210 into servo:master Dec 3, 2014
1 check passed
1 check passed
default all tests passed
@SimonSapin SimonSapin deleted the SimonSapin:no-root-cargo-toml branch Dec 3, 2014
This was referenced Dec 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants
You can’t perform that action at this time.