Skip to content

Skip errors when copying files during build #176

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

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

gwleuverink
Copy link
Contributor

We ran into an issue while building, caused by a linked storage directory.

This works as expected on mac, but failed on windows. Symlinks do not really exist there, thus the existing conditional clauses had some unexpected behaviour.

Using symlinks is discouraged as per the docs: https://nativephp.com/docs/desktop/1/digging-deeper/files#symlinks

Pete and I had a quick call, and decided to skip (but log) whenever a copy error occurred.

We might need to harden this further

@PeteBishwhip
Copy link
Member

I'd like to get a research task added to our Backlog to look into exactly how differently PHP sees .lnk files and how we could effectively capture those as well, but I do agree that for now, we should just warn something could not be copied.

A second thought I had was whether we should document somewhere about the storage directory just to reduce support queries on warnings around it?

Lets see how this does in the wild.

@PeteBishwhip PeteBishwhip requested a review from a team February 28, 2025 15:46
@gwleuverink gwleuverink changed the title skip copy errors Skip errors when copying files during build Feb 28, 2025
@gwleuverink gwleuverink marked this pull request as ready for review February 28, 2025 15:55
@SRWieZ SRWieZ merged commit dc32686 into main Feb 28, 2025
@PeteBishwhip PeteBishwhip deleted the hotfix/skip-files-that-cant-be-copied branch February 28, 2025 16:12
@simonhamp
Copy link
Member

This is a good enough solution for now guys. I like it

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.

4 participants