mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
Support Go semver convention #197
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jjuliano on GitHub (Aug 10, 2024).
When running
go mod tidy, the version must be prefixed with a 'v'. However, the file at https://github.com/apple/pkl/blob/0.25.2/stdlib/Project.pkl#L276 expects the version without the 'v'. Since I've placed the generated Go files in a separate repository, the default behavior ofgo mod tidywill fail to locate the package if the version is not prefixed with the 'v'.@jjuliano commented on GitHub (Aug 10, 2024):
I have resolved it by defining a regexp on the PklProject
@bioball commented on GitHub (Sep 6, 2024):
I don't think we will support a leading
v, because that leads to ambiguous situations (what do you do if there is both v1.0.0 and 1.0.0?)Your workaround seems like a good solution!