-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Makefile log file key in diagnose report (#1022)
* Update Makefile log file key in diagnose report As reported in #1018 the `mkmf.log` file path needs to be changed. It can be found in the `extensions` directory. The path can be fetched with the `extension_dir` method on the parsed gemspec. This `extension_dir` method will only work when installed through Ruby gems. If installed through a local path or Git repo it will need to use the original behavior. If no file can be found, the `path` value is not set. I've updated the `gem_path` method to fetch the install path from the gemspec as well. That way we have one source for this kind of information. Closes #1018 * Always return a path for the mkmf.log file Even when no mkmf.log file is found, list the path that we expect it to be in when installed. Might be easier to understand than seeing an empty path for this file in the report.
- Loading branch information
Showing
4 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
.changesets/fix-makefile-log-path-reporting-in-diagnose-report.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
bump: "patch" | ||
type: "fix" | ||
--- | ||
|
||
Fix the Makefile log path inclusion in the diagnose report. The diagnose tool didn't look in the correct gem extension directory for this log file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters