-
-
Notifications
You must be signed in to change notification settings - Fork 194
Release in wrong directory after tar extract #267
Comments
I do have the exact same problem - my
|
Hello, could you submit a fix for that? |
Sure, i could do that. Though, there's probably a reason, that @oleg-andreyev removed the |
@schwarmco I had some issues with unit tests, they simply were not working with I'll try to review my PR and remember the exact reason. |
I've returned
it seems when is running this test it does not extract files (see below)
but --strip-components=1 is remove
|
It seems that |
I had this same problem. I was on 5.3.0. I downgraded and deploy one version at a time until it went away. The first version that correctly un tared the contents was 4.1.4. I wasn't able to install 4.2.0 because it wasn't available in npm. |
me too, my releasepath look like that also. how do you fix that ? i have downgrade to 4.1.4 but doesnt solve my problem |
I have the same issue with 5.3.0 In the meantime I just edited my local |
Hello, open to a PR to fix it. |
Has anyone found a fix for this? |
I've created #279, which is showing that When you create a tar from a folder, this folder should be located in tar, and later when you extract it this folder must be present. I and @gregberge made a mistake (B/C) by removing |
I've monkey patched like this: shipit.blTask('fix-tar', () => {
shipit.pool.connections.forEach((connection) => {
const { runLocally } = connection;
connection.runLocally = function(cmd, options) {
if (cmd.includes('tar -xzf')) {
cmd = cmd.replace('.tar.gz', '.tar.gz --strip-components=1');
}
return runLocally.call(this, cmd, options);
}
});
}); shipit.on('deploy', () => {
return shipit.start(['fix-tar']);
}); But I have a bad feeling about Shipit when I see such a critical bug unfixed for so long :( |
Hi!
I noticed that
--strip-components
has been removed as an argument to thetar
command upon extraction. It seems to have been removed in this commit:3cf7454
This broke shipit-deploy deployments (in my case) as the leading directory is no longer being stripped. What was previously extracted to
src/...
is now being extracted totmp-12../src/..
Log after 5.3.0:
It's looking for package.json in the correct directory, but package.json is now located in
tmp-242../package.json
.Log pre 5.3.0:
shipitfile.js
My apologies if this is an issue of misconfiguration from my side! My configuration was working as of the previous release.
The text was updated successfully, but these errors were encountered: