flutter build X --no-pub

214 views
Skip to first unread message

Daniel Theophanes

unread,
Mar 30, 2022, 3:36:03 PM3/30/22
to Flutter Development (flutter-dev)
Hello,

I have dart and flutter installed.
I have a tool that copies over packages into a local vendor folder and re-writes the .dart_tool/package_config.json to look at this local vendor folder.

If I then turn off network, simulating an isolated build CI/CD system, and run:
flutter pub cache clean
flutter build web -t lib/main_prod.dart --release --no-pub

The "flutter build" command stops as it tries to fetch packages from the network.

Can someone explain to me what is going on, or in other words, does anyone do no-network isolated builds?

Thank you, -Daniel Theophanes


Reply all
Reply to author
Forward
0 new messages