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

Fixes #3353: rust snapshot downloads to home directory #3388

Closed
wants to merge 4 commits into from

Conversation

@acmiyaguchi
Copy link
Contributor

acmiyaguchi commented Sep 17, 2014

Moves the default rust snapshot and cargo directories to ~/.servo to build across multiple clones of the repository.

@hoppipolla-critic-bot
Copy link

hoppipolla-critic-bot commented Sep 17, 2014

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

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.

@highfive
Copy link

highfive commented Sep 17, 2014

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @kmcallister (or someone else) soon.

@Manishearth
Copy link
Member

Manishearth commented Sep 17, 2014

Could we have a --local option for when people wish to work on Rust upgrades? Eg ./mach bootstrap-rust --local

Also, this will break Travis doc uploading, either have Travis use the local variants of the commands as proposed above, or teach it about the new location of Rust docs. Travis scripts are in etc/ci

@metajack
Copy link
Contributor

metajack commented Sep 17, 2014

If you include the rust-snapshot-hash in the directory name under ~/.servo you can make this work even in the multiple clones using different Rusts case. I think that is better than the --local flags.

@SimonSapin
Copy link
Member

SimonSapin commented Sep 17, 2014

Could the ~/.servo path also be configurable? With a configuration value in self.config["tools"], like rust-root.

@metajack
Copy link
Contributor

metajack commented Sep 17, 2014

@SimonSapin That seems like an edge case. Can you explain the motivation?

@acmiyaguchi
Copy link
Contributor Author

acmiyaguchi commented Sep 17, 2014

Which method is more preferable in the case of working on Rust upgrades? @metajack How would multiple snapshot-hashes work? Like a ~/.servo/<hash>/rust?

@Manishearth
Copy link
Member

Manishearth commented Sep 17, 2014

Like ~/.servo/rust-ab847ea75e
That way each compiler version has its own folder. We used to do something similar pre-cargo

-----Original Message-----
From: "Anthony Miyaguchi" notifications@github.com
Sent: ‎9/‎17/‎2014 11:09 PM
To: "servo/servo" servo@noreply.github.com
Cc: "Manish Goregaokar" manishsmail@gmail.com
Subject: Re: [servo] Fixes #3353: rust snapshot downloads to home directory(#3388)

Which method is more preferable in the case of working on Rust upgrades? @metajack How would multiple snapshot-hashes work? Like a ~/.servo//rust?

Reply to this email directly or view it on GitHub.=

@acmiyaguchi
Copy link
Contributor Author

acmiyaguchi commented Sep 17, 2014

How do the old unused versions get purged? Wont the snapshots start adding up?

@metajack
Copy link
Contributor

metajack commented Sep 17, 2014

Purge manually or with another mach command :)

@acmiyaguchi acmiyaguchi force-pushed the acmiyaguchi:share_directory branch from c71f476 to c9084fc Sep 21, 2014
SimonSapin added a commit that referenced this pull request Sep 26, 2014
That way, whenever rust-snapshot-hash changes, mach will look for
the Rust snapshot in a different directory and re-boostrap as needed.

However, older rust version will be left behind never cleaned up.
This is good for git-bisect, but not for disk space:
the current snapshot is 618 MB.

In the future, we may want `mach clean` or some other comment
to remove unused Rust snapshots.

CC #3388
SimonSapin added a commit that referenced this pull request Sep 26, 2014
That way, whenever rust-snapshot-hash changes, mach will look for
the Rust snapshot in a different directory and re-boostrap as needed.

However, older rust version will be left behind never cleaned up.
This is good for git-bisect, but not for disk space:
the current snapshot is 618 MB.

In the future, we may want `mach clean` or some other comment
to remove unused Rust snapshots.

CC #3388
SimonSapin added a commit that referenced this pull request Sep 27, 2014
That way, whenever rust-snapshot-hash changes, mach will look for
the Rust snapshot in a different directory and re-boostrap as needed.

However, older rust version will be left behind never cleaned up.
This is good for git-bisect, but not for disk space:
the current snapshot is 618 MB.

In the future, we may want `mach clean` or some other comment
to remove unused Rust snapshots.

CC #3388
SimonSapin added a commit that referenced this pull request Sep 27, 2014
That way, whenever rust-snapshot-hash changes, mach will look for
the Rust snapshot in a different directory and re-boostrap as needed.

However, older rust version will be left behind never cleaned up.
This is good for git-bisect, but not for disk space:
the current snapshot is 618 MB.

In the future, we may want `mach clean` or some other comment
to remove unused Rust snapshots.

CC #3388
SimonSapin added a commit that referenced this pull request Sep 29, 2014
That way, whenever rust-snapshot-hash changes, mach will look for
the Rust snapshot in a different directory and re-boostrap as needed.

However, older rust version will be left behind never cleaned up.
This is good for git-bisect, but not for disk space:
the current snapshot is 618 MB.

In the future, we may want `mach clean` or some other comment
to remove unused Rust snapshots.

CC #3388
SimonSapin added a commit that referenced this pull request Sep 29, 2014
That way, whenever rust-snapshot-hash changes, mach will look for
the Rust snapshot in a different directory and re-boostrap as needed.

However, older rust version will be left behind never cleaned up.
This is good for git-bisect, but not for disk space:
the current snapshot is 618 MB.

In the future, we may want `mach clean` or some other comment
to remove unused Rust snapshots.

CC #3388
SimonSapin added a commit that referenced this pull request Sep 29, 2014
That way, whenever rust-snapshot-hash changes, mach will look for
the Rust snapshot in a different directory and re-boostrap as needed.

However, older rust version will be left behind never cleaned up.
This is good for git-bisect, but not for disk space:
the current snapshot is 618 MB.

In the future, we may want `mach clean` or some other comment
to remove unused Rust snapshots.

CC #3388
@mbrubeck
Copy link
Contributor

mbrubeck commented Nov 5, 2014

I rebased this patch onto master, and pushed the rebased version to #3902. Thanks!

@mbrubeck mbrubeck closed this Nov 5, 2014
bors-servo pushed a commit that referenced this pull request Nov 5, 2014
This is @acmiyaguchi's already-reviewed patch from #3388, rebased and squashed onto servo master. Fixes #3353.
bors-servo pushed a commit that referenced this pull request Nov 5, 2014
This is @acmiyaguchi's already-reviewed patch from #3388, rebased and squashed onto servo master. Fixes #3353.
bors-servo pushed a commit that referenced this pull request Nov 6, 2014
This is @acmiyaguchi's already-reviewed patch from #3388, rebased and squashed onto servo master. Fixes #3353.
bors-servo pushed a commit that referenced this pull request Nov 6, 2014
This is @acmiyaguchi's already-reviewed patch from #3388, rebased and squashed onto servo master. Fixes #3353.
@SimonSapin SimonSapin mentioned this pull request 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.

None yet

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