Open eripoll opened 1 week ago
Thank you for bringing this to our attention @eripoll
I was able to reproduce this with the steps and also reproduced it with both the very_good_cli
, dart_frog_cli
and the mason_cli
. None of them showed this issue in the past and I know that the last two haven't actively had changes to them that could impact this.
I suspect this is some strange pub
issue, I haven't yet seen the issue on Windows while working on the Dart Frog CLI there but no matter what it will require some further investigation to find the true culprit.
Good to hear you were able to reproduce! I was going bonkers here 😀 If I can be of some assistance, let me know!
I was able to reproduce this with the steps and also reproduced it with both the
very_good_cli
,dart_frog_cli
and themason_cli
. None of them showed this issue in the past and I know that the last two haven't actively had changes to them that could impact this.I suspect this is some strange
pub
issue, I haven't yet seen the issue on Windows while working on the Dart Frog CLI there but no matter what it will require some further investigation to find the true culprit.
@wolfenrain It may be related: https://github.com/dart-lang/pub/issues/4295
Description For some reason I can't figure out, for the past three days, no matter how I try to do it, as I am developing my dart_cli template-base CLI project, whenever I change anything in a file and activate the package, the newest version of the file is not the one I see when testing my cli.
Steps To Reproduce
dart pub global activate very_good_cli
to get the latest version of very_good_clivery_good create dart_cli sfdk_cli
to create a brand new CLI projectdart pub get
in the newly created project to get dependencies.dart pub global activate --source path .
to build and install the executable without changing anything in the project.I get
sfdk_cli --version
I get
which is expected.
Change version to
0.0.2
in thepub spec.yaml
file anddart pub global activate --source path .
againI get
which is expected (except for the dependencies issues)
Run
sfdk_cli --version
againI get
0.0.1
If I change anything in the files from the template, like just changing the help text from
Print the current version.
toPrint the current version of the CLI.
, if I add any debugging instructions, NOTHING is being picked, as if the package is stuck to the previous version.Cleaning the cache, deactivating, etc do not change a thing. I have also been unable to fix the dependency constraints issues...
Additional Context My dart version is
Dart SDK version: 3.4.3 (stable)
MacOS 14.5 (23F79)Any thoughts? Can anyone reproduce? I've been going insane for the past couple days trying to figure this out...