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
feat: add gitfile option to make it possible to use local git repos when importing modules #1376
feat: add gitfile option to make it possible to use local git repos when importing modules #1376
Conversation
e5f5208
to
aa628e9
Compare
b4e11f0
to
1a4491a
Compare
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.
Thanks a lot. Some comments below. Apart from that, can you add some test case(s)?
…hen importing modules.
0dcbd17
to
dd47a78
Compare
dd47a78
to
2fa3791
Compare
I have updated the code now. I could add small git repo in the tests folder with commits that a workflow will have to use. |
I need some thoughts of how to handle tests for this pull-request. I have create "module" use to test the new functionality: But to be able to run the test I would have to include a .git folder with the module, which git isn't alllowing me to do. The only solution I can think of now is to compress the folder and decompress it before running the different tests. @johanneskoester Do you have any good suggestion of how to handle this? |
Could git Submodules be a acceptable solution? |
Didn't work |
I have added test cases now |
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.
We are getting there! See below.
@johanneskoester would there be any point of supporting relative path when importing a module using gitfile? At the moment I believe the could requires an absolute path. |
078f7bb
to
0893bf3
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
done |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@johanneskoester it should now allow for relative paths |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Feat: add gitfile option to make it possible to use local git repos when importing modules.
Should make it possible to include module like this:
solves issues: