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

Confusing relative path to remote repository #202

Open
tclune opened this issue Sep 30, 2021 · 2 comments
Open

Confusing relative path to remote repository #202

tclune opened this issue Sep 30, 2021 · 2 comments
Assignees
Projects

Comments

@tclune
Copy link
Contributor

tclune commented Sep 30, 2021

A user has complained that the use of ../GEOSgcm_GridComp.git is confusing in the context of a work tree. The suggestion was to instead support something like a ROOT variable ala:

  remote:   $REMOTE/GEOSgcm_GridComp.git

Probably worth a separate discussion for the best choice of name for the new pseudo-variable.

If this breaks our ability to use anonymous clones then we should push back.

@mathomp4
Copy link
Member

You can have variable substitution in YAML? I didn't know that was possible. I've read a bit about yglu, but I'm not sure there is an yglu library in Python. I guess I'll look.

@mathomp4
Copy link
Member

mathomp4 commented Sep 30, 2021

Note that I used this syntax because it is what Git itself does in its submodules support:

<repository> is the URL of the new submodule’s origin repository. This may be either an absolute URL, or (if it begins with ./ or ../), the location relative to the superproject’s default remote repository (Please note that to specify a repository foo.git which is located right next to a superproject bar.git, you’ll have to use ../foo.git instead of ./foo.git - as one might expect when following the rules for relative URLs - because the evaluation of relative URLs in Git is identical to that of relative directories).

Since I think of mepo as sort of like git submodules, I used that syntax. I'll try looking around if something similar exists in git submodules but I don't think so per the man page linked to above.

ETA: Yeah, it doesn't look like git itself supports anything else: https://git-scm.com/docs/gitmodules#Documentation/gitmodules.txt-submoduleltnamegturl

@mathomp4 mathomp4 added this to To do in mepo 2 Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
mepo 2
To do
Development

No branches or pull requests

2 participants