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

Cherrypick 0.4.2 #367

Merged
merged 2 commits into from
Apr 7, 2017
Merged

Conversation

jayconrod
Copy link
Contributor

Cherrypicked the following changes:

Note that this PR is onto a new branch, release/0.4.2, which currently points to 0.4.1.

wlynch and others added 2 commits April 7, 2017 13:11
…ild#319)

* go_repository: add importpath and vcs flags (bazelbuild#313)

This change allows fetch_repo to fetch repositories without attempting
to determine the repo root if the user supplies the information
themselves. This allows users to be able to fetch repositories that the
vcs package would otherwise not be able to recognize.

This change also changes the behavior of the --remote flag to match the
git_repository rule.

* Respond to jayconrod@ comments in bazelbuild#319.

* Add BUILD rule for fetch_repo_test.go
* Stub out vcs.RepoRootForImportPath
* Make remote and vcs flags not being set in fetch_repo a hard error.
* Verify VCS is not nil before returning it in a RepoRoot.

* Fix go_repository rule for bazelbuild#319.

Since the vcs field in go_repository was always set to "git", fetch_repo was
always failing if the user passed in only the importpath.
The github.com/bazelbuild/buildifier repository was renamed to
buildtools. With this change, we download from the new location but
keep the old import path.

Fixes bazelbuild#361
@pmbethe09
Copy link
Member

LGTM

@jayconrod jayconrod merged commit 87cdda3 into bazelbuild:release/0.4.2 Apr 7, 2017
@jayconrod jayconrod deleted the cherrypick-0.4.2 branch April 7, 2017 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants