| Summary: | tycho-versions-plugin does not change version for the eclipse-repository packaging type | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Robert Munteanu <robert.munteanu> |
| Component: | Tycho | Assignee: | Jan Sievers <jan.sievers> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | igor, jan.sievers, mistria, t-oberlies |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 342876 | ||
|
Description
Robert Munteanu
It only makes sense to fix tycho-versions-plugin after we split eclipse-repository and eclipse-product packaging types and settle on repository descriptor format. What do you expect to be changed? - For product definitions, I agree that this needs to wait for the packaging type split (bug 348586). - There should be no need to change the category.xml - instead one should specify a "0.0.0" version for "latest version". Unfortunately, this is currently broken: bug 350236. For my use case bug 350236 should be enough. There is nothing left to do: - We won't replace versions in the category.xml. For latest version, use "0.0.0" (without ".qualifier"!) - The version in product files needs to be replaced, but this will only be supported in the future eclipse-product packaging type (bug 348586) *** Bug 386104 has been marked as a duplicate of this bug. *** I only recently learned that the versions in fact does update references (and opened bug 418013 for the missing documentation). This means that this bug report is in fact valid - it makes sense to expect that the category.xml is updated. The workaround is to use 0.0.0 as version in the category.xml. So should the following Gerrit patch marked as abandonned because of feature already available? Which feature is available? The category.xml is currently not updated but it should be - this is why this bug report is open. Sorry I misread. I submitted a Gerrit patch a while ago on this topic https://git.eclipse.org/r/#/c/6995/ (In reply to comment #9) > I submitted a Gerrit patch a while ago on this topic > https://git.eclipse.org/r/#/c/6995/ Sorry, but the patch was only a small part of what is needed to fully implement this. So I decided to re-implement it instead of making you jump through the IP hoops for it: https://git.eclipse.org/r/#/c/29416/ (In reply to comment #10) > https://git.eclipse.org/r/#/c/29416/ Submitted: http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=7bc4560b35cb55c90d471407c273cd27c2db46e1 trying to use the versions plugin 0.21.0-SNAPSHOT for tycho itself I get: [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:10.705s [INFO] Finished at: Mon Jul 14 13:26:08 CEST 2014 [INFO] Final Memory: 12M/244M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.21.0-SNAPSHOT:set-version (default-cli) on proj ect tycho: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.21.0-SNAPSHOT:set-version failed: Cou ld not read categories from c:\git\eclipse\org.eclipse.tycho\tycho-bundles\tycho-standalone-p2-director\category.xml: c: \git\eclipse\org.eclipse.tycho\tycho-bundles\tycho-standalone-p2-director\category.xml (The system cannot find the file specified) -> [Help 1] [ERROR] Looks like the case of no category.xml (only .product files) needs to be fixed. |