Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 2.1 KB

DEV_NOTES.md

File metadata and controls

56 lines (40 loc) · 2.1 KB

DEV

Chore

In the local clone, after pulling commits and tags from upstream and reapplying the fork changes and testing, we need to apply a tag that is semver superior but also that is not going to have conflicts with any future upstream tag.

Use tags with the following structure:

AAA = 3 digit 0 padded UPSTREAM_MAYOR

BBB = 3 digit 0 padded UPSTREAM_MINOR

CCC = 3 digit 0 padded UPSTREAM_PATCH

DDD = 3 digit 0 padded incremental counter starting in 1

FORK_TAG = <UPSTREAM_PATCH><AAA><BBB><CCC><DDD>

v<UPSTREAM_MAYOR>.<UPSTREAM_MINOR>.<FORK_TAG>

v<UPSTREAM_MAYOR>.<UPSTREAM_MINOR>.<FORK_TAG>-pre

v<UPSTREAM_MAYOR>.<UPSTREAM_MINOR>.<FORK_TAG>+build

v<UPSTREAM_MAYOR>.<UPSTREAM_MINOR>.<FORK_TAG>-pre+build

For example:

upstream fork issue
2.3.1
2.3.1002003001001 ok
2.3.2
2.3.2002003002001 ok
2.3.2002003002002 ok
2.3.2002003002003 ok
2.4.1
2.4.1002004001001 ok
3.3.1
3.3.1003003001001 ok

Invalid options:

upstream fork issue
2.3.1
2.3.2 future conflict with upstream tag
2.4.1 worst future conflict with upstream tag
3.3.1 even worst future conflict with upstream tag
2.3.1-001 is a semver pre-release so it's not picked for update
2.3.1+001 the build meta tag it's not picked for update
2.3.2
2.4.1
3.3.1