dart-lang / dart-docker

Docker images for the Dart programming language (https://dart.dev)
BSD 3-Clause "New" or "Revised" License
70 stars 15 forks source link

pub is unavailable on 2.17 #95

Closed waghanza closed 2 years ago

waghanza commented 2 years ago

Hi,

I'm using dart:2.17 in https://github.com/the-benchmarker/web-frameworks/pull/5339

I have the following error

=> ERROR [4/7] RUN pub get --no-precompile

Should I change a PATH or anything ?

Regards,

cpswan commented 2 years ago

pub as a standalone tool has been deprecated, and 2.17 is the release where it's not supported any more. You'll need to change your Dockerfile to use dart pub.