[FOLIO-1415] SPIKE: consider pre-release syntax for UI module snapshots Created: 16/Aug/18 Updated: 08/Feb/21 |
|
| Status: | Open |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Task | Priority: | P3 |
| Reporter: | Matthew Jones | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | RFC, build-release, ci, platform-backlog | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||||||||||||||
| Sprint: | CP: ready for planning | ||||||||||||||||||||
| Story Points: | 5 | ||||||||||||||||||||
| Development Team: | Core: Platform | ||||||||||||||||||||
| Description |
|
This ticket is being creating because I don't want John Malconian's suggestion in
Use of this pre-release syntax will also enable our build numbers to adhere to semver. Currently our npm-folioci build numbers can be misleading at the patch segment. For example, version 1.2.3000123 generated from a package defining itself as 1.2.3, technically can be satisfied by a request for ^1.2.4. Also, determining compatibility with our own npm-folio can also be a challenge. For example, is 1.2.3000456 actually the CI build of 1.2.3 or a build working toward 1.3.0? One challenge, as I understand from the earlier JIRAs on this topic (
|
| Comments |
| Comment by Matthew Jones [ 16/Aug/18 ] | ||||||||||||||||||
|
To make this work, what would the process look like? Here is one suggestion:
Note: | ||||||||||||||||||
| Comment by Matthew Jones [ 16/Aug/18 ] | ||||||||||||||||||
|
What does this look like when building a platform in CI? Because of the pre-release suffix, we won't be able to use "latest" or ">=0.0.0" for dependencies (the latter of which basically says "I'll take any version"). We will have to be more specific in knowing the latest intended major.minor.patch, but could take the latest snapshot: "dependencies": { "@folio/users": ">2.12.3-SNAPSHOT", "@folio/stripes": ">1.0.0-SNAPSHOT" }, |