Closed marandaneto closed 1 year ago
There is no "publish image". It uses the docker image built here: https://github.com/getsentry/craft/blob/master/Dockerfile
I guess you can override it by simply adding dartCliPath: flutter
to your .craft.yml
file under the pubdev target. Worth a try?
Good point, dart
is downloaded here https://github.com/getsentry/craft/blob/0b738d51ca7504a883bd12b40b9ac6cc12434715/Dockerfile#L32 and it uses the latest version, I need to check if there are any breaking changes in the latest version.
I guess you can override it by simply adding dartCliPath: flutter to your .craft.yml file under the pubdev target. Worth a try?
I'd need to first add flutter
to the Dockerfile
otherwise it won't be found anyway.
Ah, makes sense. Ping me here if you need any help regarding the Dockerfile
Looking at https://github.com/dart-lang/pub/blob/bfaf358551f11dffc8706abbead2dd2131b7af38/test/sdk_test.dart#L153-L170
Apparently, all we need to do is to make sure that the docker image installs flutter
, the dart pub
already calls either dart pub
or flutter pub
automatically.
Ah, makes sense. Ping me here if you need any help regarding the Dockerfile
Sounds good, I will look into https://docs.flutter.dev/get-started/install/linux#install-flutter-manually Likely needs https://docs.flutter.dev/get-started/install/linux#additional-linux-requirements as well.
Unless it'd be fine to do it using snapd
, WDYT?/
snapd
isn't a thing in docker
Environment
I'm not sure what's configured in the image of the publish action.
Steps to Reproduce
Try to publish the pub.dev target with a Flutter package, example. This is blocking us to release new versions of our SDKs.
Expected Result
Publish with no errors
Actual Result
https://github.com/getsentry/publish/actions/runs/4084948587/jobs/7042272509
I'm not sure what has changed, maybe we need to upgrade the
dart
version in the image? Maybe we need to access the raw logs and check if there's more info? Maybe there's a breaking change and we cannot usedart pub publish
anymore for Flutter packages?I could not reproduce this locally, I actually got a different error, by trying
dart pub publish --dry-run
but it's different than the output in the error.