简体   繁体   English

在 gemfury 中覆盖/强制推送现有的包版本

[英]Overwrite/force push an existing package version in gemfury

We are using gemfury to manage our internal python package releases.我们正在使用 gemfury 来管理我们的内部 python 包版本。 The issue I am facing right now is that gemfury doesn't allow pushing/overwriting the same version, which is good in a way when dealing with production builds.我现在面临的问题是 gemfury 不允许推送/覆盖相同的版本,这在处理生产构建时在某种程度上是好的。 This is difficult to manage in case of dev/qa builds.在 dev/qa 构建的情况下,这很难管理。 We do increment version and release when releasing production versions.我们在发布生产版本时会增加版本和发布。

Is there a flag that can be used to force push/overwrite a package version?是否有可用于强制推送/覆盖包版本的标志? Eg.例如。 If someone pushes some change to my QA branch, I build the branch and release the new build, but I want to call it version 'qa' always.如果有人向我的 QA 分支推送了一些更改,我会构建该分支并发布新版本,但我想始终将其称为版本“qa”。 So this way, I always want the 'qa' version to point to the latest version of my QA build.这样,我总是希望“qa”版本指向我的 QA 版本的最新版本。 I have a jenkins job to do this.我有一份詹金斯的工作来做这件事。

I really need an api/flag to overwrite an existing version to accomplish what I am trying to achieve with respect to automating our development and release process.我真的需要一个 api/flag 来覆盖现有版本来完成我试图实现的关于自动化我们的开发和发布过程的目标。 Please let me know if something like this is available.如果有这样的东西,请告诉我。

It might not help your cause, but from Gemfury website I select the version I want to upgrade, delete it and then upload the new package with same version.这可能对您的事业没有帮助,但是从 Gemfury 网站上,我选择要升级的版本,将其删除,然后上传具有相同版本的新软件包。

I think that way you can automate as well.我认为这样你也可以自动化。

您可以使用下面的 CLI 删除最新的软件包版本并继续新的上传(

fury yank package-name -v 0.1.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM