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
Incorrect paths when using nested Danger #1429
Comments
Danger Ruby is a very mature, done OSS project, I'm afraid folks aren't going to be fixing bugs or adding features for other people, you're welcome to look at this if it is important to you though |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Honestly I don't think this is a bug.
|
That's the point. |
Report
I'm converting my comment from here: #1177
into an issue, as 1177 was closed and no one seem to care.
Assume
When executing
danger
fromnested-again
directory the paths returned bygit.renamed_files
,git.modified_files
andgit.added_files
are incorrect. They will all start with/nested/nested-again/someFilename
instead of just./someFilename
as this is the current working directory.This leads to issues in all plugins as most of them is doing
File.expand_path
on the returned paths and the final path is:/Users/<username>/<path_to_repo>/nested/nestedAgain/nested/nestedAgain/someFilename
leading to:(No such file or directory)
errors.I don't know where is the root cause but it seems like the change to make
danger
run in a subdirectory is not completed.Would you please take a look at this?
Example of an issue in swiftlint plugin:
ashfurrow/danger-ruby-swiftlint#175
I've checked this on Danger
9.2.0
.The text was updated successfully, but these errors were encountered: