Skip to content

Extensions create 💅 #4802

Merged
vilmibm merged 2 commits intotrunkfrom
mislav/bin-ext-create
Nov 30, 2021
Merged

Extensions create 💅 #4802
vilmibm merged 2 commits intotrunkfrom
mislav/bin-ext-create

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Nov 24, 2021

  • doing mkdir before git init <dir> is not necessary; git will create the directory if it doesn't exist
  • passing both -C and --git-dir is not needed for git invocations
  • reading the current working directory isn't necessary for specifying nested paths to operate in
  • use git add . instead of explicitly naming all paths; we generate a gitignore for binaries that we want to avoid adding
  • generate cross-platform gitignore for Go binary extensions
  • add assertions for command output in tests, verifying that expected commands have been run
  • add helpers to simplify writing files, tests

Followup to #4718

- doing mkdir before `git init <dir>` is not necessary; git will
  create the directory if it doesn't exist
- passing both `-C` and `--git-dir` is not needed for git invocations
- reading the current working directory isn't necessary for specifying
  nested paths to operate in
- use `git add .` instead of explicitly naming all paths; we generate a
  gitignore for binaries that we want to avoid adding
- generate cross-platform gitignore for Go binary extensions
- add helpers to simplify writing files, tests
@mislav mislav requested a review from vilmibm November 24, 2021 12:49
@mislav mislav requested a review from a team as a code owner November 24, 2021 12:49
Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

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

thanks!

Base automatically changed from bin-ext-create to trunk November 30, 2021 22:36
@vilmibm vilmibm merged commit 59082a1 into trunk Nov 30, 2021
@vilmibm vilmibm deleted the mislav/bin-ext-create branch November 30, 2021 22:36
@VictorBatta VictorBatta mentioned this pull request Dec 4, 2021
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.

3 participants