#How do people organize their repo with

1 messages · Page 1 of 1 (latest)

onyx mica
regal pivot
languid aurora
#

Ahh nice.. Thanks

#

Do you know if its possible to do minor and major versions as well, creating three tags for each module like my-module/v1, my-module/v1.0 and my-module/v1.0.1

onyx mica
#

Yeah its possible but what would you want to get from that approach? I find just a single tag has been good enough for me and works perfectly with daggerverse.dev

languid aurora
#

Every time you bump your module’s version (e.g., with a patch), you also move the corresponding minor and major tags to the new commit. This way, in your upstream modules, you can pin the dependency to v1 or v1.2, and automatically receive the latest patched version the next time it runs, without having to change anything.

onyx mica
regal pivot
#

yeah I wouldn't recommend moving tags. I know github actions has historically recommended that but its bad and they're finally getting away from it. What we need is partial semver matching in the version resolution

languid aurora
#

Why is it bad ?

regal pivot
#

github actions used it as a hack to avoid building a version resolution api and distribution for actions (but they have that now and its rolling out), but your dependencies should always be pinned (and ideally immutable) so that a commit of your app is always built the same way. This is both for reliability and supply chain security

#

same reason the rest of the package managers use go.sum, package-lock.json, etc

languid aurora
#

Got it.