Skip to content

Conversation

@bobheadxi
Copy link
Member

@bobheadxi bobheadxi commented Nov 29, 2022

Improve docstrings from the recently added src snapshot commands (#891), and also make some minor tweaks (mkdir on the snapshot output directory)

Test plan

CI

@bobheadxi bobheadxi requested a review from a team November 29, 2022 18:05
}

b := out.Block(output.Emoji(output.EmojiSuccess, "Commands generated - run them all to generate required database dumps:"))
_ = os.MkdirAll(srcSnapshotDir, os.ModePerm)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific reason to ignore this error?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a transient "set up in the background" type of thing, and ignoring MkdirAll error is a very common practice: https://sourcegraph.com/search?q=_+%3D+os.MkdirAll

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed something like that, just wanted to double check. 😄

@bobheadxi bobheadxi merged commit 7462d79 into main Nov 29, 2022
@bobheadxi bobheadxi deleted the src-snapshot-docstrings branch November 29, 2022 18:20
scjohns pushed a commit that referenced this pull request Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants