Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

copy, not symlink, local files #844

Merged
merged 2 commits into from
Feb 26, 2019
Merged

Conversation

laverya
Copy link
Member

@laverya laverya commented Feb 26, 2019

What I Did

Instead of using gogetter for local files (which results in symlinks) recursively copy the directory. This fixes #843

How I Did it

How to verify it

Integration tests, including ones using local files, continue to pass.
ship init /path/to/yaml/files works.

Description for the Changelog

Local upstreams are now copied instead of symlinked.

Picture of a Boat (not required but encouraged)

USS Perry (DD-844)

@laverya laverya marked this pull request as ready for review February 26, 2019 03:02
@laverya laverya requested a review from Rob0h February 26, 2019 03:02
@dexhorthy
Copy link
Member

👍 nice. There are some other weird things that happen with symlinks. In general we could probably stand to revisit how we can better support them at a project level, but for now I'm all for this.

debug := level.Debug(g.Logger)
debug.Log("event", "localgetter.GetFiles", "upstream", upstream, "savePath", savePath)

// Remove the directory because go-getter wants to create it
Copy link
Contributor

Choose a reason for hiding this comment

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

is this comment and block still relevant?

@laverya laverya merged commit 7656021 into replicatedhq:master Feb 26, 2019
@laverya laverya deleted the copy-local-files branch February 26, 2019 20:02
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.

Local upstreams do not work with plain yaml files
3 participants