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

Copy all files into asset volume #467

Merged
merged 2 commits into from Sep 15, 2023
Merged

Copy all files into asset volume #467

merged 2 commits into from Sep 15, 2023

Conversation

djmb
Copy link
Collaborator

@djmb djmb commented Sep 15, 2023

Adding -T to the copy command ensures that the files are copied at the same level into the target directory whether it exists or not.

That allows us to drop the /* which was not picking up hidden files.

Fixes: #465

Adding -T to the copy command ensures that the files are copied at the
same level into the target directory whether it exists or not.

That allows us to drop the `/*` which was not picking up hidden files.

Fixes: #465
@djmb djmb merged commit 168c6e2 into main Sep 15, 2023
6 checks passed
@djmb djmb deleted the assets-copy-hidden-files branch September 15, 2023 07:46
@@ -234,6 +234,6 @@ def find_and_remove_older_siblings(path)
end

def copy_contents(source, destination, continue_on_error: false)
[ :cp, "-rn", "#{source}/*", destination, *("|| true" if continue_on_error)]
[ :cp, "-rnT", "#{source}", destination, *("|| true" if continue_on_error)]
Copy link
Member

Choose a reason for hiding this comment

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

Looks like -T is GNU-only. Copying "#{source}/.", "#{destination}/." could be a workaround, avoiding the differing trailing-slash behavior in BSD vs GNU.

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.

sprockets-manifest missing from public
2 participants