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

CLI-1136: [push:artifact] include empty directories and symlinks #1606

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

danepowell
Copy link
Contributor

Motivation

push:artifact doesn't mirror symlinks that point to directories. It probably also doesn't mirror empty directories, though that's less likely to cause problems since empty directories are VCS ignored and not generally useful anyway.

@danepowell danepowell added the bug Something isn't working label Oct 18, 2023
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (23d3e32) 91.68% compared to head (8d864c5) 91.68%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1606   +/-   ##
=========================================
  Coverage     91.68%   91.68%           
  Complexity     1809     1809           
=========================================
  Files           124      124           
  Lines          6485     6485           
=========================================
  Hits           5946     5946           
  Misses          539      539           
Files Coverage Δ
src/Command/Push/PushArtifactCommand.php 90.66% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danepowell danepowell enabled auto-merge (squash) October 23, 2023 21:48
@danepowell danepowell merged commit 3f7cbb4 into acquia:main Oct 23, 2023
12 checks passed
@mglaman
Copy link
Contributor

mglaman commented Oct 26, 2023

@danepowell this is causing issues if a directory existed in the original artifact but was removed in the new artifact.

[2023-10-25T16:22:55.449Z]   [Symfony\Component\Finder\Exception\AccessDeniedException]                   
[2023-10-25T16:22:55.450Z]   RecursiveDirectoryIterator::__construct(/tmp/acli-push-artifact/acquia-util  
[2023-10-25T16:22:55.450Z]   s): Failed to open directory: No such file or directory

@danepowell
Copy link
Contributor Author

Can you please open a new ticket (GitHub or Jira) with steps to reproduce? I don't understand why removing a directory would be any different than removing a file as far as the Symfony Finder is concerned.

@mglaman
Copy link
Contributor

mglaman commented Oct 27, 2023

Yeah, I'll open a Jira ticket so I can explain in detail more

@danepowell danepowell deleted the CLI-1136 branch September 20, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants