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
Workspace setting not being respected #194
Comments
|
Hmm, looked at the shipit code and found this: https://github.com/shipitjs/shipit/blob/master/packages/shipit-deploy/src/tasks/deploy/fetch.js#L22-L26 So, shallow clone makes workspace irrelevant, why is this? |
|
The workspace command was misunderstood, so I decided to set it to a temporary directory if shallowClone is activated. Why would you like to specify a custom workspace with shallowClone? |
|
Well, mostly for reliability and flexibility. I understand my scenario is a little unorthodox, but what I'm doing is I'm pushing the frontend code to a different server using I've managed to work out a hack in the meantime, which acts before workspace is deleted, but it took me a while to understand it was In any case, regardless my opinion - that not respecting the |
|
I encountered the same issue and I have to confess this change is making everything so confusing... I need to clone my code, cd into it and do what's the "official" way to clone a repo, do some operations on the file and then copy the resulting files to the server? |
|
@cvlmtg the way I'm working around that is by listening the Regarding the shallow clone issue, I've laid out my thoughts above but there's something else that isn't quite working which is the shallow clone isn't being applied to submodules. For this to work I'm also using a hack: |
|
@brecke thanks for the help! I've been able to solve my problems this way:
then I had to add a |
|
|
I think we should make it optional, if workspace is not defined do not use it and let user the choice to define one. Anyone is interested by submitting a PR for it? If you do, don't forget tests and documentation please |
|
@neoziro not sure if I'm up to the task, but the problem, or at least my problem, is that the concept of the workspace is unclear, and the documentation is lacking. what's the purpose of the workspace? why do you say it was misunderstood? what should it do? how was it supposed to be used? why shallow clone ignores it? etc... before adding other options I'd try to improve the doc, but as I said it is not clear what was the original idea behind the workspace and how it was supposed to be used or defined etc... |
|
The workspace is actually the directory which is used to clone the repository before deploying it. But most of users was setting it to an existing directory, like the current project and it was erased. To avoid it we can do several things:
Actually only the first one is done, so if you are up to the task, you have the three others to do! |


hi there,
Just installed latest versions of shipit packages and here's something new:
/var/folders/s0/scv46d414cd28hyzsd5_pcrw0000gn/T/tmp-72206PXTF2WKB77Roso I'm guessing something is wrong with shipit.Tried
chown'ing my workspace folder to 777 to no avail. Don't know where to look, help?The text was updated successfully, but these errors were encountered: