8000 Explicitly setting the git remote's URL when updating git dependencies by wk8 · Pull Request #592 · rebar/rebar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.

Explicitly setting the git remote's URL when updating git dependencies #592

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wk8
Copy link
@wk8 wk8 commented Feb 25, 2016

Otherwise, switching remotes for a dependency (as often happens e.g. when forking
a github repo, then switching back again when the pull request gets merged by the
upstream repo's maintainers) would typically break builds, with errors like:

sh(git checkout -q <git_reference>)
failed with return code 128 and the following output:
fatal: reference is not a tree: <git_reference>

@wk8 wk8 force-pushed the wk/wk8/git_remote_switching branch 2 times, most recently from 2a7acb9 to fee1a55 Compare February 26, 2016 01:20
Otherwise, switching remotes for a dependency (as often happens e.g. when forking
a github repo, then switching back again when the pull request gets merged by the
upstream repo's maintainers) would typically break builds, with errors like:

```
sh(git checkout -q <git_reference>)
failed with return code 128 and the following output:
fatal: reference is not a tree: <git_reference>
```
@wk8 wk8 force-pushed the wk/wk8/git_remote_switching branch from fee1a55 to 695eb20 Compare February 26, 2016 08:18
@ghost
Copy link
ghost commented Aug 18, 2017

@wk8, I suppose you don't use rebar2 anymore, or else you would have pinged about the inactivity here. The diff looks reasonable to me and, if we are certain it won't negatively affect any scenario in the wild, I'd suggest a review+merge.

@wk8
Copy link
Author
wk8 commented Aug 19, 2017

@Tuncer yup we did switch to rebar3 a few months ago, but used this version of rebar2 till then, up to you if you want to review/merge, happy to do changes if the review warrants them :)

@ghost
Copy link
ghost commented Aug 19, 2017

In that case, do you mind extending the test suite? Given the potential to break scenarios in the wild, having tests for variations of git remote changes in deps is important. To that end, clone one of inttest/tdep* and execute tests by first fetching retest via make deps and then each running deps/retest/retest -v inttest. In the past, it was possible to selectively run a single inttest, but this has been broken since the introduction of a shared library helper module in inttest.

@wk8
Copy link
Author
wk8 commented Aug 19, 2017

@Tuncer okay, will do soon, thanks

@ghost
Copy link
ghost commented Aug 19, 2017

Thinking about it, I haven't seen this reported anywhere else and, since you moved to rebar3, we could skip the patch and avoid potential regressions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0