unpub icon indicating copy to clipboard operation
unpub copied to clipboard

Build fails due to missing pub binary

Open wolkenschieber opened this issue 1 year ago • 0 comments

The build through make build fails:

$ make build
cd unpub_web &&\
dart pub global activate webdev 2.7.4 &&\
dart pub global run webdev build
Package webdev is currently active at version 2.7.4.
The package webdev is already activated at newest available version.
To recompile executables, first run `dart pub global deactivate webdev`.
Installed executable webdev.
Activated webdev 2.7.4.
Unhandled exception:
ProcessException: No such file or directory
  Command: /mnt/Development/flutter/sdk/flutter/bin/cache/dart-sdk/bin/pub deps
#0      _ProcessImpl._runAndWait (dart:io-patch/process_patch.dart:487:7)
#1      _runNonInteractiveProcessSync (dart:io-patch/process_patch.dart:632:18)
#2      Process.runSync (dart:io-patch/process_patch.dart:68:12)
#3      _runPubDeps (package:webdev/src/pubspec.dart:58:24)
#4      PubspecLock.read (package:webdev/src/pubspec.dart:80:11)
#5      readPubspecLock (package:webdev/src/command/shared.dart:100:39)
#6      BuildCommand.run (package:webdev/src/command/build_command.dart:53:29)
#7      CommandRunner.runCommand (package:args/command_runner.dart:212:27)
#8      _CommandRunner.runCommand (package:webdev/src/webdev_command_runner.dart:40:24)
#9      CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:122:25)
#10     new Future.sync (dart:async/future.dart:302:31)
#11     CommandRunner.run (package:args/command_runner.dart:122:14)
#12     run (package:webdev/src/webdev_command_runner.dart:21:56)
#13     main (file:///home/keibak/.pub-cache/hosted/pub.dev/webdev-2.7.4/bin/webdev.dart:19:22)
#14     _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:33)
#15     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)
make: *** [Makefile:11: build] Fehler 255

wolkenschieber avatar Apr 30 '23 21:04 wolkenschieber