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
add shared logs base directory #5409
Conversation
@@ -66,6 +66,11 @@ def self.iterm? | |||
!!ENV["ITERM_SESSION_ID"] | |||
end | |||
|
|||
# Logs base directory | |||
def self.buildlog_path | |||
return ENV["FL_BUILDLOG_PATH"] || "~/Library/Logs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use File.expand()
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean for both values or just the default with the ~
? I left then unexpanded because they were in the places I call this from, the option defaults are unexpanded paths. For example gym prints a table of the options it's using and that table reads "~/Library/Logs/gym" if I expand it now it will be the complete path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I wasn't clear, I'd like your feedback on this again @KrauseFx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File.expand_path(ENV["FL_BUILDLOG_PATH"] || "~/Library/Logs")
👍
This looks great. However you'll need to split this up to 2 PRs, one for fastlane_core, and one for the tools, which will fail until we pushed a new |
OK. I've split up the commit and force pushed this PR to be part 1 |
Perfect, thanks 👍 |
Keep it mind, with the path now expanded all tools will go from this:
to something like this
|
Ugh, that's not ideal, good point. |
Like the others helpers, we could instead put the onus on callers to expand the path as needed. |
@KrauseFx I took out the commit that expanded the path. Let's keep it in mind for Part 2. |
Would be great to get this in soon so I move on to part 2 🙋 |
Sorry for the delay @Ashton-W, I'm reviewing your PR now 👍 |
This is perfect, really sorry for the delay again, and I can't wait for step 2 👍 |
* Implement common Logs directory in FastlaneCore (#5409) * Update commander dependency
* Implement common Logs directory in FastlaneCore (#5409) * Update commander dependency
Thanks, this is already in the latest release. This should be documented as well 👍 |
Adds
FL_BUILDLOG_PATH
environment variable to override the default base log path of~/Library/Logs
.Half Implements #4989
Another PR will include changes to:
master...Ashton-W:aw-common-buildlog_path