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

[feature] option to use hash attached to the relative path instead of the version field #251

Open
andry81 opened this issue Feb 11, 2023 · 0 comments

Comments

@andry81
Copy link

andry81 commented Feb 11, 2023

Git already does store submodule commit hash in a commit.

Example: andry81-tests/gil-test1-A@f5f753f

Which means if the yaml file has the version field then, it actually by default overrides a submodule branch commit to be checkouted:

repositories:

  _externals/lib1:
    type:         git
    url:          https://github.com/user/lib1
    version:      master

The _externals/lib1 is already committed here with the external repo hash (the url is not known internally).

I suggest to add an option to import command to use versions recorded for all submodules:

>vcs import --use-internal-version < .externals

This will checkout versions has been committed the last time, not the versions declared in the .externals yaml file.

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

1 participant