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

Fix powershell errors and update C# #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lucasteles
Copy link

I got some errors because my home path contains spaces.
Also, got some warnings because the script could the powershell $PROFILE

I start this as a simple refactoring modernizing the C# code and I end up fixing those issues too.

@dmiller
Copy link
Member

dmiller commented Dec 10, 2024 via email

@dmiller
Copy link
Member

dmiller commented Dec 10, 2024

You mention two issues that were fixed by your patch.
Could you elaborate on how the patch actually fixed those issues?
I see mostly C# code formatting changes and a little refactoring.

@lucasteles
Copy link
Author

@dmiller

However, also due to policy, I cannot accept code from someone unless they have signed a contributor agreement with Clojure.

I just signed it.

Could you elaborate on how the patch actually fixed those issues?

Sure!


1

I got some errors because my home path contains spaces.
When adding to ArgumentList, check if it contains an space and quote it:

https://github.com/clojure/clr.core.cli/pull/1/files?short_path=34a081f#diff-d233b5fd4806d9b048421db9491ef3895d932c5de8f6e8b4239b44f161edf9a8R499-R506

Validating the cpFile existence to better feedback:
https://github.com/clojure/clr.core.cli/pull/1/files#diff-d233b5fd4806d9b048421db9491ef3895d932c5de8f6e8b4239b44f161edf9a8R223-R224

2

Also, got some warnings because the script could the powershell $PROFILE

This is for skipping the load of user profile and bypassing the execution policy when executing PowerShell
https://github.com/clojure/clr.core.cli/pull/1/files?short_path=34a081f#diff-d233b5fd4806d9b048421db9491ef3895d932c5de8f6e8b4239b44f161edf9a8R499-R506

@dmiller
Copy link
Member

dmiller commented Dec 11, 2024 via email

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.

2 participants