srawlins / timezone

Time zone database and time zone aware DateTime object for Dart.
BSD 2-Clause "Simplified" License
102 stars 54 forks source link

$ pub run tool/get not working in TimeZone #78

Closed ghost closed 3 years ago

ghost commented 3 years ago

I am trying to run pub run tool/get but in the latest version of timezone (^0.5.9) the dependency is completely broken- This is what it shows me and when I try to call a timezone it shows me _value was called on null.

Failed to precompile timezone:get:
Error: Error when reading '../../../global_packages/timezone/.packages': No such file or directory
Error: Could not resolve the package 'args' in 'package:args/args.dart'.
Error: Could not resolve the package 'logging' in 'package:logging/logging.dart'.
Error: Could not resolve the package 'path' in 'package:path/path.dart'.
Error: Could not resolve the package 'glob' in 'package:glob/glob.dart'.
Error: Could not resolve the package 'timezone' in 'package:timezone/tzdata.dart'.
Error: Could not resolve the package 'timezone' in 'package:timezone/timezone.dart'.
Error: Could not resolve the package 'timezone' in 'package:timezone/src/tools.dart'.
Error: Could not resolve the package 'timezone' in 'package:timezone/src/tzdb.dart'.
tool/get.dart:20:8: Error: Not found: 'package:args/args.dart'
import 'package:args/args.dart';
       ^