Skip to content

Conversation

tsmith35
Copy link
Contributor

@tsmith35 tsmith35 commented Nov 1, 2024

Fixes "Build on Windows" so an error isn't thrown if the working directories already exist. I simply added "-p" to the mkdir commands.

Screenshots/Recordings/Graphs

Before the change:

image

Will need testing, but it is a simple change to bring "Build on Windows" in line with the other OS builds.

Fixes "Build on Windows" so an error isn't thrown if the working directories already exist.
@tsmith35
Copy link
Contributor Author

tsmith35 commented Nov 2, 2024

@SoftFever this PR is very simple. Just added '-p' to a couple of mkdir commands for building Windows deps.

@tsmith35
Copy link
Contributor Author

tsmith35 commented Nov 5, 2024

@Noisyfox ... do these changes appear to be correct? Without the "-p", the simple act of making the build directory results in an error if the directory already exists, thereby preventing the deps from being built.

@Noisyfox
Copy link
Collaborator

Noisyfox commented Nov 5, 2024

I don't think -p works on windows.

@tsmith35
Copy link
Contributor Author

tsmith35 commented Nov 5, 2024

I don't think -p works on windows.

From what I've seen, the YAML files on Github appear to be processed with Linux. There are four other "mkdir -p" instances in the original file, so I just copied that. I tried building the deps numerous times without success, but adding the "-p" did the trick.

I Googled for >> "An item with the specified name" "already exists." << and found that it is specific to PowerShell. So that's interesting. But PowerShell doesn't support "-p" for mkdir.

@Noisyfox
Copy link
Collaborator

Noisyfox commented Nov 6, 2024

@tsmith35
Copy link
Contributor Author

tsmith35 commented Nov 7, 2024

@Noisyfox I think I figured out why adding the "-p" fixed the issue; the argument is invalid in PS, so it didn't attempt to create the directory. I'll correct it a different way and update the PR. Thanks for your help!

@tsmith35 tsmith35 changed the title Update build_deps.yml (add missing '-p' for mkdir) Update build_deps.yml (check for existing directory tree and skips creation if exists) Dec 26, 2024
@tsmith35
Copy link
Contributor Author

@Noisyfox I think everything is working correctly now. Can you or one of the others check it it for approval? Thanks!

@Noisyfox
Copy link
Collaborator

@Noisyfox I think everything is working correctly now. Can you or one of the others check it it for approval? Thanks!

LGTM thanks! Just one little update and I could merge this.

@Noisyfox Noisyfox merged commit 893b8cb into SoftFever:main Jan 22, 2025
16 checks passed
@tsmith35 tsmith35 deleted the Fix-build_deps-so-no-error-if-directories-exist branch January 31, 2025 02:39
GiacomoGuaresi pushed a commit to gingeradditive/OrcaSlicer that referenced this pull request Feb 8, 2025
…eation if exists) (SoftFever#7337)

* Update build_deps.yml

Fixes "Build on Windows" so an error isn't thrown if the working directories already exist.

* Update build_deps.yml

* Update build_deps.yml
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.

3 participants