Conversation
|
I see a product version "1.0.0" in I also see a category version "1.0.0" in |
Could be useful to put a comment inside |
|
PTAL. Updated both. |
| units.1.provides.1.namespace=org.eclipse.equinox.p2.iu | ||
| units.1.provides.1.name=com.google.cloud.tools.eclipse.category | ||
| units.1.provides.1.version=1.0.0 | ||
| units.1.provides.1.version=1.0.1 |
There was a problem hiding this comment.
I think you need to change the requires.1.range up above. This .p2.inf format hurts to read. Basically this file associates p2 metadata to the com.google.cloud.tools.eclipse.dist product defined in the gcp-repo/metadata.product file.
- the initial
requires.1adds a requirement on the product IU for an IU with certain capabilities; think of the namespace as being a the capability type, and the name is the capability identifier. So thisrequires.1says the product requires our new category - the
units.Ndefines new IUs; theunits.N.provides.Mdescribes the capabilities of this IU. In this case this IU provides a category definition. The category values are in the properties. - the category IU also has some requirements to pull in a feature
There was a problem hiding this comment.
@briandealwis there is also units.1.version=1.0.0 above. That is left untouched?
There was a problem hiding this comment.
I don't know! I think we have to try it and maybe change the unimportant versions to 999.999.999 to indicate that they don't matter.
There was a problem hiding this comment.
The units.1.version determines what's shown the user.
diff --git a/gcp-repo/metadata.p2.inf b/gcp-repo/metadata.p2.inf
index 010b3c0..c234b59 100644
--- a/gcp-repo/metadata.p2.inf
+++ b/gcp-repo/metadata.p2.inf
@@ -14,7 +14,7 @@ requires.1.range=[1.0.0,1.0.1]
requires.1.greedy=true
units.1.id=com.google.cloud.tools.eclipse.category
-units.1.version=1.0.1
+units.1.version=999
units.1.properties.1.name=org.eclipse.equinox.p2.type.category
units.1.properties.1.value=true
units.1.properties.2.name=org.eclipse.equinox.p2.name
Codecov Report
@@ Coverage Diff @@
## master #1565 +/- ##
============================================
+ Coverage 71.11% 71.11% +<.01%
- Complexity 1335 1349 +14
============================================
Files 237 237
Lines 9038 9087 +49
Branches 774 789 +15
============================================
+ Hits 6427 6462 +35
- Misses 2288 2301 +13
- Partials 323 324 +1
Continue to review full report at Codecov.
|
|
PTAL |
briandealwis
left a comment
There was a problem hiding this comment.
LGTM. You could narrow the range to [1.0.1,1.0.1] but there's no real compelling reason since we should never possibly pull in the older category from another repository.
@chanseokoh @briandealwis
Do we need to update this anywhere else?