Tag: 章鱼

为什么.tar文件会生成数百个PaxHeader文件?

我正在设置一个AutoCI – > Jenkins – > Octopus自动构build过程。 我使用一个名为octopackjs&gulp-octo的包将我的node.js项目打包成.tar文件,如下所示: return gulp.src(['**/*', '!gulpfile.js']) .pipe(octo.pack("tar.gz")) .pipe(octo.push({apiKey: 'API-SUPERCOOLKEY', host: 'https://octopus.supercooldomain.net', replace: true})); 我可以把它打包起来,然后把它推到八达通服务器的正确位置。 但是,当我检查.tar文件的内容时,它被数百个名为“PaxHeader”的文件所污染。 从一些环顾四周,该文件旨在包含.tar包的元数据。 当八达通尝试将该文件提取到我的目标环境时,它会引发以下错误跟踪: System.IO.IOException: Cannot create /home/opsteam/.octopus/Applications/OctopusServer/Dev.Corporate/webapp/2.0.10/PaxHeader because a file with the same name already exists. 09:46:34Error at System.IO.Directory.CreateDirectory (System.String path) <0x7fdc9e79db50 + 0x00167> in <filename unknown>:0 09:46:34Error at SharpCompress.Reader.IReaderExtensions.WriteEntryToDirectory (IReader reader, System.String destinationDirectory, ExtractOptions options) […]