User customization without forking #230
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User customization without forking
Note: Does not affect existing
make
commands ifPREFIX
is not set.Users can clone boxcutter/windows and make user specific copies of Packer templates, scripts and configs they can edit that are ignored by git.
*.json
template files can be symlinks to files in another repo.floppy
andscript
cannot be symlinks but can be links to files in other repos.This adds flexibility to customize and to easily sync with the upstream repo at any time!
$(PREFIX)
to theMakefile
make PREFIX=[company]. [company].[target]
to build from[company].target.json
.gitignore
floppy and script folders:*.*.json
floppy/*.*.*
script/*.*.*
I use it as follows:
I have a repo in Github with my customizations that are business specific:
I can now use boxcutter/windows unmodified with my user customizations that have no business being in your repo and everything is still in source control.
I think this is a great add to this project for users that need user customizations and don't want to fork and keep their personal repo synched with this repo.