Wally only installs latest versions of packages

I’ve been using Wally for a while now, and I didn’t have this issue up until recently.

I have been installing packages with Wally but they never seem to install with the specified version.

My aftman.toml

[tools]
wally = "UpliftGames/wally@0.3.1"

My wally.toml

[dependencies]
Knit = "sleitnick/knit@^1.4.3"

Installed Knit Package:

return require(script.Parent._Index["sleitnick_knit@1.7.0"]["knit"])

Does anyone know why this is happening?

Edit: It is to note that I did upgrade Knit to 1.7.0 at one point before attempting to update the package back to a previous version; not sure if that would be a factor here.

UPDATE @ryanisawesome25

After taking a break I remembered how it goes. For a while I’ve been only using the latest versions.

By default Wally mimics the behaviour of Cargo or npm with a caret ^. Bug fixes and new features are added while backward compatiblity is retained, so minor and patch versions are always up to date, and major is retained (e.g. 3.y.z). An attempt to rollback from a major to major release will work as anticipated.

Otherwise, semver specifiers are supported.

Knit = "sleitnick/knit@=1.4.3" #exact version
Knit = "sleitnick/knit@~1.4" #same major, same minor, latest patch
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.