gpt4 book ai didi

github uses adds old asset files when creating new release(github在创建新版本时使用添加旧资产文件)

转载 作者:bug小助手 更新时间:2023-10-28 09:24:06 24 4
gpt4 key购买 nike



On my GitHub project at [https://github.com/bfristensky/BioLegato], I have a release 1.1.1, and want to create a new release 1.1.2 using "Draft a new release", which includes the current main branch.

在我位于[https://github.com/bfristensky/BioLegato],]的GitHub项目中,我有一个1.1.1版,我想使用“起草一个新版本”来创建一个新的1.1.2版,其中包括当前的主分支。


Initially, when I created 1.1.2, the 1.1.2 release page would always show the asset files (ie. .zip and .tar.gz) from the previous version. The filenames were v1.1.2.zip v1.1.2.tar.gz, but the dates were from 1.1.1, more than a year ago. Downloading the 1.1.2 files verified that these were the old version, and not 1.1.2.
I deleted 1.1.2, and rebuilt the Java project, and pushed it to main, hoping to force github to create new asset files. Instead, now I got the from the initial build of 1.1.2. I checked to make sure that the revised files were seen in main. I have tried several cycles of deleting 1.1.2 and re-creating it. I even tried creating a 1.1.3, but now 1.1.3 has the asset files from 1.1.2. I don't want to have a release where the asset file have a different number from the release number.

最初,当我创建1.1.2时,1.1.2版本页面将始终显示资产文件(即.zip和.tar.gz)。文件名是v1.1.2.压缩v1.1.2.tar.gz,但日期是一年多前的1.1.1。下载1.1.2文件时确认这些文件是旧版本,而不是1.1.2。我删除了1.1.2,重新构建了Java项目,并将其推送到Main,希望迫使GitHub创建新的资产文件。相反,现在我从最初的1.1.2版本中获得了。我检查了一下,以确保在Main中看到了修改后的文件。我尝试了几次删除1.1.2并重新创建它的循环。我甚至尝试创建1.1.3,但现在1.1.3拥有来自1.1.2的资产文件。我不希望资产文件的版本号与版本号不同。


It kind of seems like "Draft a new release" is adding the previous asset files to the new release, when the expected behavior should be to create new .zip and .tar.gz files each time.

这看起来有点像“起草一个新版本”是将以前的资源文件添加到新版本中,而预期的行为应该是每次都创建新的.zip和.tar.gz文件。


更多回答

SOLUTION: You have to delete the old tag as well as deleting the release. The old tag (eg. 1.1.2) will still point to previous files. What I didn't know was that tags contain metadata that point to whatever version of files you were referring to when the tag was created. A tag is much more than just a convenient character string.

解决方案:您必须删除旧标签以及删除版本。旧标签(例如,1.1.2)仍将指向以前的文件。我不知道的是,标记包含指向创建标记时引用的文件版本的元数据。标签不仅仅是一个方便的字符串。

优秀答案推荐
更多回答

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com