Replies: 1 comment 4 replies
-
I originally thought we'd do versioned keys. But over time have realized some duplication is ok and lean towards separate files. Do we have an example yet other that pcre where we need this sort of thing? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Over time, this will become important if we don't want to fracture the
package.yml
; indeed, it would have been useful forpcre.org
, due to "v2" being>=10
. In theory it could support pretty much any key sequence, but you might expect:Etc. I think the idea is clear. It's just... very complicated. You'd basically need to check every key in the yaml to see if it was keyed by semver.Range.
This is an alternate to a slightly sloppier idea, in which project directories could include
package.${semver.Range}.yml
, allowing the system to match out the package.yml for its proposed version.Both of these ideas have glaring issues for version resolution: they complicate the resolution algorithm, since resolving
pcre.org: '*'
is equivalent to a dependency onpcre.org: <10 || pcre.org: >=10
, and we don't yet have resolution for alternate package dependencies in this way.Beta Was this translation helpful? Give feedback.
All reactions