According to the pub get
docs the main difference between pub get
and pub upgrade
is:
If a lockfile already exists, pub get uses the versions of dependencies locked in it if possible. If a dependency isn’t locked, pub will get the latest version of that dependency that satisfies all the version constraints. This is the primary difference between pub get and pub upgrade, which always tries to get the latest versions of all dependencies.
But this leaves me with a few questions.
- What do they mean by "If a dependency isn't locked...? Locked?!? Like in version control? File system lock? What is this lock of which they speak?
- Still not clearly understanding the difference between these two commands. Are they saying that
pub get
takes version constraints into account, and thatpub upgrade
doesn't?