videah / SkyBridge

A work in progress bridge/proxy that lets you use Mastodon apps with Bluesky

Home Page:https://skybridge.fly.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dart frog CLI version mismatch causes build to fail

ObjectInSpace opened this issue · comments

I'm probably doing something wrong.

Trying to run my own instance on flydev. After I start launching the app with flyctl launch, it eventually errors out with this:
=> ERROR [build 11/13] RUN dart pub global run dart_frog_cli:dart_frog build 1.0s

[build 11/13] RUN dart pub global run dart_frog_cli:dart_frog build:
0.747 The current version of "dart_frog_cli" requires "dart_frog" >=0.3.0 <0.4.0.
0.747 Because the current version of "dart_frog" is ^1.1.0, version solving failed.
0.947
0.947 Update available! 0.3.8 → 1.2.2
0.947 Changelog: https://github.com/verygoodopensource/dart_frog/releases/tag/dart_frog_cli-v1.2.2
0.947 Run dart_frog update to update


Error: failed to fetch an image or build from source: error building: failed to solve: process "/bin/sh -c dart pub global run dart_frog_cli:dart_frog build" did not complete successfully: exit code: 70

However running dart_frog update informs me that it is already at the latest version.

This was because I had run dart pub outdated and dart pub upgrade which caused the manifest to require later versions of the packages. Solution was to restore pubspec.yaml to its state when it was cloned, then run dart pub get, then dart pub global activate dart_frog_cli 0.3.8 to downgrade the version on my system to the one appropriate to build this app.