Closed matthewnitschke-wk closed 1 year ago
Platform.script.toFilePath()
, but this does not work
dart ./scip_dart.dart
works fine, but once its compiled to the .snapshot
file used by pub global activate
the path points to scip_dart.snapshot
which is not in the same directory as scip_dart's pubspec.yaml filepub_release
(also by onepub) to also generate a version.g.dart
file: https://pub.dev/packages/pub_releaseThe best solution might just be to have a version.dart
file which is updated within CI in the release process
The version within
ToolInfo
is currently hardcoded to0.0.1
, this should instead be the version currently within the pubspec.yaml fileAll of the current pubspec.yaml retreival is for the package that is currently being indexed, this instead needs to be for the package of scip-dart instead. Might be worth checking on how args or other cli tools retrieve versions to determine how this can be done