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 clone --reckless ephemeral from anonymous https sets annex-ignore for origin #7666

Open
matrss opened this issue Sep 26, 2024 · 1 comment

Comments

@matrss
Copy link
Contributor

matrss commented Sep 26, 2024

What is the problem?

A datalad clone --reckless ephemeral using an anonymous https URL makes origin annex-ignore, even though a git annex enableremote origin immediately afterwards works just fine.

What steps will reproduce the problem?

$ datalad clone --reckless ephemeral https://hub.datalad.org/distribits/recordings.git
[INFO   ] RIA store unavailable. -caused by- file:///data/group/psyinf/distribits/distribits.ria/ria-layout-version not found, self.ria_store_url: ria+file:///data/group/psyinf/distribits/distribits.ria, self.store_base_pass: /data/group/psyinf/distribits/distribits.ria, self.store_base_pass_push: None, path: <class 'pathlib.PosixPath'> /data/group/psyinf/distribits/distribits.ria/ria-layout-version -caused by- [Errno 2] No such file or directory: '/data/group/psyinf/distribits/distribits.ria/ria-layout-version' 
[WARNING] reckless=ephemeral mode: origin doesn't seem local: https://hub.datalad.org/distribits/recordings.git
| no symlinks being used 
install(ok): /home/icg149/Playground/recordings (dataset)
$ cd recordings/
$ datalad get distribits2024/2024-04-05_12_unconference.webm 
get(error): distribits2024/2024-04-05_12_unconference.webm (file) [not available; (Note that these git remotes have annex-ignore set: origin)]                                                                                                                      
[ble: exit 1]
$ git annex enableremote origin
enableremote (normal) origin ok
$ datalad get distribits2024/2024-04-05_12_unconference.webm 
get(ok): distribits2024/2024-04-05_12_unconference.webm (file) [from origin...]

DataLad information

$ datalad --version
datalad 1.1.3

Additional context

Slightly off-topic: what I am really looking for is just the annex.private part of an ephemeral clone, not necessarily the symlinking hacks, but this is rather convoluted compared to providing a single option when cloning:

datalad -c annex.private=true clone ...
cd ...
git config annex.private true

Maybe that should be made easier?

Have you had any success using DataLad before?

No response

@mslw
Copy link
Contributor

mslw commented Oct 10, 2024

Slightly off-topic: what I am really looking for is just the annex.private part of an ephemeral clone, not necessarily the symlinking hacks, but this is rather convoluted compared to providing a single option when cloning:

datalad -c annex.private=true clone ...
cd ...
git config annex.private true

Maybe that should be made easier?

Thanks for pointing that out. I got used to doing it this way and stopped thinking of it as convoluted, until recently I wanted to do the same from the Python API... and had to modify os.environ. Anyway - I resurrected #7247 which I think proposes just what you describe (--reckless private for clone) got stuck due to lack of agreement about the API, hopefully it will get accepted this time.

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

2 participants