-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: Use generated path from git clone as target #14
Conversation
When using a private GitLab repository e.g. `git+ssh://git@gitlab.com:my-org/my-project.git` the clone is performed correctly but `finalFolder(target, generate)` returns the wrong path, e.g. `/tmp/tmp-73792-2hsN3OqRrsZG/gitlab.commy-org` instead of ` /tmp/tmp-73792-2hsN3OqRrsZG/gitlab.commy-org/my-project` This causes that the `npm i --only=prod` is not executed, since no `package.json` is found. Therefore the whole makes for such projects does not work. Occurs since Version 2.1.4, worked in version 2.1.3
Thx. |
I am curious why git created extra folder |
I'm using git version 2.27.0 The log for
This log looks exactly the same way as yours, but the directory And the project structure looks like this: The log tells that everything is fine, but the dependencies have not been installer and the follow-up questions are also missing. However, if I'm using version 2.1.3 of makes everything works, as you can see in this log:
The key difference is how the subgroup is resolved into a folder.
There is only one production dependency in my package.json, which is: And it's usage in in the last question:
|
Ok, I see what went wrong, your project name Not sure it's org name: |
All github/gitlab/bitbucket don't allow "/" in project name or org name. So far, I only saw gitlab has this group (aka org in github, workspace in bitbucket) and subgroup thing. I will adjust git clone command to avoid extra folder. |
Try latest makes v2.1.5, it should fix your issue. |
Oh, I can see there is a behaviour change between makes v2.1.3 and v2.1.4.
The latest v2.1.5 should normalise it to one plain folder. |
Version 2.1.5 fixes the problem. Thanks for the quick fix 👍🏽 |
When using a private GitLab repository e.g.
git+ssh://git@gitlab.com:my-org/my-project.git
the clone is performed correctly but
finalFolder(target, generate)
returns the wrong path, e.g./tmp/tmp-73792-2hsN3OqRrsZG/gitlab.commy-org
instead of
/tmp/tmp-73792-2hsN3OqRrsZG/gitlab.commy-org/my-project
This causes that the
npm i --only=prod
is not executed, since nopackage.json
is found.Therefore the whole makes for such projects does not work.
Occurs since Version 2.1.4, worked in version 2.1.3