-
Notifications
You must be signed in to change notification settings - Fork 15
Add instruction for working from a fork #129
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
Conversation
@mguaypaq: Answers below
|
Agreed. It really is. I wonder if
|
I wonder if this would be better fixed by adding a GitHub Workflow that syncs the git-annex branch from upstream regularly. Their API lets you find out who the upstream is, I used it over in: If we can get all forks to run that automatically we should avoid the problem. Right? |
I like the idea of using automation to avoid this issue, but I think the regular instructions are still useful. Some thoughts (where I use
|
I was definitely thinking this would be a GitHub specific workaround.
I think this is always a risk no matter where you're running git-annex. It somehow takes care to make sure that branch is always mergeable, every time it says like this
Maybe it's doing something special to avoid merge conflicts that git by itself would run into, but if so we use
This is the one that gives me the most pause. I don't want to do that either. If it's in our repos, we'll get notifications about problems, but in someone else's we won't see it until they come to us scratching their heads. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The root-ish cause is clicking the GitHub sync button, which is not git-annex aware. The current instructions neglect to mention this step. I think we should lean into that and give an all-in-one command line solution that handles syncing both branches in one reliable line, i.e. my latest suggestion.
Sorry it took me so long to review this! |
Not at all, thanks for the review, the suggestions, and the thorough testing! I like your earlier suggestion of:
because it should reliably solve the problem (that With your last suggestion, I think the |
Isn't that what clicking the Sync button on github and then running In fact I realized this while testing.
isn't enough. It has to be
Are you thinking about the case where they're if they're just submitting new data in a PR? In that case, they don't need to be synced up. Maybe we're overcomplicating this. The designed UI is
to do everything in one, but I had reasons for moving away from that:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But in any case I feel like my review was well heard, so make whatever updates you think are appropriate and feel free to merge then.
There's an unrelated failure in the Dataset Validator, when trying to download the dataset. A single file fails, with:
Hopefully it's just a random failure; I've re-started the job. |
That's the right call. This is #107! |
See also the corresponding change at: spine-generic/data-multi-subject#129
See also the corresponding change at: spine-generic/data-multi-subject#129
Fixes #128.
After a long bout of debugging, we figured out that, when working from a clone of a fork of this repository, it's important to have up-to-date versions of the
git-annex
branch from the fork and from this repository before runninggit annex get
(which will automatically reconcile information from all availablegit-annex
branches). This can be done by configuring this repository as a remote calledupstream
for the clone, and runninggit fetch upstream
beforegit annex get
.This pull request adds instructions to the readme to this effect.
Questions for the reviewers:
@renelabounek, I can't tag you as a reviewer, but if you have any thoughts I'd love to hear them.