-
Notifications
You must be signed in to change notification settings - Fork 231
Inconsistent behavior of dart pub global activate on Desktop and GitLab #3290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Perhaps your cache has been corrupted somehow? Try removing the folder: file:///builds/mcmahonjohn/repomod/.pub-cache/hosted/pub.dartlang.org/junitreport-2.0.2/ and activate again. |
@sigurdm I removed any caching so that folder no longer exists before the job executes. The same result occurs. Could it be that it's related to the detect platform? |
Is your /builds/mcmahonjohn/repomod/ inside a git repo? Maybe our file-listing is doing tricks here... |
@sigurdm I can't reproduce this locally, but I can inside a GitLab job. |
Does repomod have any '.gitignore' or '.pubignore' files? |
@sigurdm Yes just a .gitignore file:
|
I was able to resolve the issue. The issue was related to how I was using .gitlab-ci.yaml I had a variable defined as: PUB_VARS: "--platform vm --coverage=./coverage --reporter json" | tojunit -o ./report.xml And using it as such: dart test $PUB_VARS But I shouldn't have embed the However, I am still getting this error/warning notice:
But the report seems to still be able to be parsed into the proper format |
I have the same problem when i run my test on Bitbar... Did u find any solution? Warning: Executable "tojunit" runs "bin/tojunit.dart", which was not found in junitreport. |
@appAutoTesting As I mentioned "But I shouldn't have embed the tojunit command in the variable" I had the tojunit as part of a variable command line argument. For me the fix was to separate them like this: TEST_VARS: "--platform vm --coverage=./coverage --reporter json""
JUNIT_VARS: "tojunit -o ./report.xml That way I would run it in my .gitlab-ci.yaml like this: script: dart test $TEST_VARS | $JUNIT_VARS I do still get
But that isn't breaking the functionality for me, I still get the converted report. |
Environment
pub version
: Pub 2.15.1Problem
Please describe the problem in detail, including the specific command that is
failing.
I'm running dart pub global activate junitreport --verbose
But the executable tojunit is support to run
bin/tojunit.dart
which does not exist in the .pub-cache/global_packages/junitreport/. In face, junitreport does not have abin
directory.Was the problem with a specific package you were trying to fetch? junitreport
If relevant, what does the
pubspec.yaml
file for your project look like: pubspec.yamlExpected behavior
I expected .pub-cache/global_packages/junitreport would have a bin directory and all other necessary files to allow the
tojunit
command to work properly.I tested this locally on my MacOS and it works fine. As far as I can tell in the logs, running the above locally has only one section that does not exist in the GitLab job:
So I would expect to see the above output when running the command in a GitLab job
Actual behavior
The .pub-cache/global_packages/junitreport directory is missing its bin directory and unable to allow the tojunit executable to run properly.
--trace output
job_output.txt
The text was updated successfully, but these errors were encountered: