#shorebird suggests flutter-version to be the revision hash but doesnt work

1 messages · Page 1 of 1 (latest)

slate orchid
#

We have successfully released our Android app with shorebird using flutter 3.22.2
When we try to build release our IOS app using flutter 3.22.2, shorebird fails with

A release with version 4.3.0+1 already exists but was built using a different Flutter revision.


  Existing release built with: 3.22.2 (853d13d954)
  Current release built with: 3.22.2 (69dfcf2e30)

All platforms for a given release must be built using the same Flutter revision.

To resolve this issue, you can:
  * Re-run the release command with "--flutter-version=853d13d954df3b6e9c2f07b72062f33c52a9a64b".
  * Delete the existing release and re-run the release command with the desired Flutter version.
  * Bump the release version and re-run the release command with the desired Flutter version.

When we re try with "--flutter-version=853d13d954df3b6e9c2f07b72062f33c52a9a64b" as shorebird suggests we get the error

FormatException: Could not parse "853d13d954df3b6e9c2f07b72062f33c52a9a64b".
#0      new Version.parse (package:pub_semver/src/version.dart:120:7)
#1      IosReleaser.assertPreconditions (package:shorebird_cli/src/commands/release/ios_releaser.dart:85:19)
<asynchronous suspension>
#2      ReleaseCommand.createRelease (package:shorebird_cli/src/commands/release/release_command.dart:220:5)
<asynchronous suspension>
haughty swallow
#

Hrm, that's really surprising and shouldn't be happening

#

Obviously "it works for me" isn't a solution, but here's what I see:

⑆ shorebird release android --flutter-version=853d13d954df3b6e9c2f07b72062f33c52a9a64b
✓ Fetching apps (1.3s)
⠙ Installing Flutter 3.22.2 (853d13d954)... (2.5s)^C
#

Even with a clean cache, it seems to work

#

Can you tell me more about the environment (OS, CI/local)?

slate orchid
#

We use codemagic, what happens if you put the hash in quotes --flutter-version="853d13d954df3b6e9c2f07b72062f33c52a9a64b"

haughty swallow
#

Can you share the command you're running?

slate orchid
#

Very weird,
If i run locally
shorebird release android --flutter-version=853d13d954df3b6e9c2f07b72062f33c52a9a64b works!!!
if i run
shorebird release ios --flutter-version=853d13d954df3b6e9c2f07b72062f33c52a9a64b fails with same error

eternal zodiac
#

That’s because iOS only supports releasing with Flutter 3.22.2 and above

slate orchid
#

yes but 853d13d954df3b6e9c2f07b72062f33c52a9a64b is 3.22.2

#
Existing release built with: 3.22.2 (853d13d954)
Current release built with: 3.22.2 (69dfcf2e30)

both are 3.22.2

haughty swallow
#

Hmm, yeah, this is weird, I'm seeing it too

#
⑆ shorebird release ios --flutter-version=853d13d954df3b6e9c2f07b72062f33c52a9a64b -v
FormatException: Could not parse "853d13d954df3b6e9c2f07b72062f33c52a9a64b".
#

And weirdly not with Android

#

looking now

haughty swallow
#

Thanks for reporting, a fix will be released soon

haughty swallow
#

To close this out, a fix went out with Shorebird 1.3.1