Skip to content
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

Do not delete the vendor directory #1326

Merged
merged 5 commits into from Oct 27, 2014
Merged

Do not delete the vendor directory #1326

merged 5 commits into from Oct 27, 2014

Conversation

sethvargo
Copy link
Contributor

This PR uses a file syncer to avoid deleting the vendor directory (previous behavior). This also updates and fixes the failing tests

/cc @reset @mikelococo

@sethvargo
Copy link
Contributor Author

@reset can you take a look at this when you have a minute please?

FileUtils.cp(source_file, "#{destination}/#{relative_path}")
else
raise RuntimeError,
"Unknown file type: `#{File.ftype(source_file)}' at `#{source_file}'!"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably say what we were doing when we encountered the bad file, "Syncing X to X failed:"

@reset
Copy link
Contributor

reset commented Oct 27, 2014

@sethvargo looks good just rebase and reformat to match the Berkshelf coding style

@sethvargo
Copy link
Contributor Author

@reset rebased and updated that error message. Are there any other style things you see that I need to cleanup?

reset added a commit that referenced this pull request Oct 27, 2014
@reset reset merged commit e2a356c into master Oct 27, 2014
@reset reset deleted the sethvargo/file_syncer branch October 27, 2014 17:26
@reset
Copy link
Contributor

reset commented Oct 27, 2014

@sethvargo looks good

@berkshelf berkshelf locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Vendor Directories without Top-Level Directory Removal
2 participants