The test creates a templated package and tries to publish it. It needs dependent packages to be published first, and right now that list is fixed. With a new SDK the template and the dependencies may change, which requires the fixed versions to be updated.
Instead, we should read the dependencies from the templated package's pubspec.yaml and publish them.