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

datalad siblings github --publish-depends github-lfs eror... #10

Open
dnkennedy opened this issue Jun 3, 2022 · 5 comments
Open

datalad siblings github --publish-depends github-lfs eror... #10

dnkennedy opened this issue Jun 3, 2022 · 5 comments
Assignees

Comments

@dnkennedy
Copy link
Contributor

In the publish section we are told to run:

datalad siblings github --publish-depends github-lfs

I get the following error:

usage: datalad siblings [-h] [-d DATASET] [-s NAME] [--url [URL]] [--pushurl PUSHURL] [-D DESCRIPTION]
                        [--fetch] [--as-common-datasrc NAME] [--publish-depends SIBLINGNAME]
                        [--publish-by-default REFSPEC] [--annex-wanted EXPR] [--annex-required EXPR]
                        [--annex-group EXPR] [--annex-groupwanted EXPR] [--inherit] [--no-annex-info] [-r]
                        [-R LEVELS] [--version]
                        [{query|add|remove|configure|enable}]
datalad siblings: error: argument {query|add|remove|configure|enable}: invalid constraint:{'query', 'add', 'remove', 'configure', 'enable'} value: 'github'

I think this step was updated by @jsheunis ; any ideas what I'm missing?

@yarikoptic
Copy link
Member

what publish section -- reference? may be you missed configure and -s? look at usage error gave you -- it is there to help!

datalad siblings configure -s github --publish-depends github-lfs

@dnkennedy
Copy link
Contributor Author

reopening to get the correction into the instructions...

@dnkennedy dnkennedy reopened this Jun 3, 2022
@yarikoptic yarikoptic assigned dnkennedy and unassigned yarikoptic Jun 3, 2022
@dnkennedy
Copy link
Contributor Author

This is still a 'problem'. Currently, the instructions work, but the GitHub repo get's left with the git-annex branch being the default, so that the user has to manually reset that to 'master' being the default, or else datalad install doesn't work correctly.

@yarikoptic questioned the datalad version (mine is 0.16.2) (or blamed me for using a mac...), but I'm still awaiting a resolution as to how to get this to work completely correctly...

@jsheunis
Copy link
Contributor

jsheunis commented Jun 7, 2022

@dnkennedy this sounds like a git/github default branch issue.

Any new DataLad dataset configured with master instead of main as the default branch will get git-annex configured to be the default displayed branch when it is pushed to GitHub. See this FAQ for more information. This can be prevented by:

git config --global init.defaultBranch main

@yarikoptic
Copy link
Member

yarikoptic commented Jun 7, 2022

FWIW, submitted a potential fix to this mess (never enough tests, isn't it!!!?) datalad/datalad#6750

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

No branches or pull requests

3 participants