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

feat(windows) powershell and batch support (fix mac) #58

Conversation

tensor-programming
Copy link
Contributor

Which issue does this fix?

Closes #10

Describe the solution

Adds Batch and powershell support to Mask.

@jacobdeichert
Copy link
Owner

jacobdeichert commented Apr 10, 2020

Previous discussion over here: #45
^ for context if anyone comes and reads this PR


@tensor-programming thank you for reopening this PR 👍

I'll find time to figure out the macOS issue this weekend hopefully. Surprised CI/linux has no issues but mac does 😂

@tensor-programming
Copy link
Contributor Author

What actually going on on Mac? Ill get one of my guys to look at it.

@jacobdeichert
Copy link
Owner

After building this branch and running that version of mask locally with the root maskfile, this error occurs:

ERROR: No such file or directory (os error 2)

When I removed the powershell code blocks, I believe it fixed the issue. So it might be something to do with mac trying to run the powershell block or something.

I didn't get to it this weekend unfortunately. Might tackle in the next few nights.

@tensor-programming
Copy link
Contributor Author

What I can do is update the CI for mac and see if I can get it to build with my fixes.

@tensor-programming
Copy link
Contributor Author

tensor-programming commented Apr 15, 2020

Interesting, it seems that at least on the Github virtual machine there are no errors (running the tests). I will have to get one of my guys to check it out since I don't have a mac myself.

Edit: few of the macs devs on Tauri all ran it and didn't see an issue. It seems that whatever the problem is, is inconsistent from machine to machine. Perhaps the machine in question has powershell installed or something like that?

Copy link
Owner

@jacobdeichert jacobdeichert left a comment

Choose a reason for hiding this comment

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

Okay, so i figured out what was going on.

When I ran this branch locally before, I was running mask link and getting this error:

ERROR: No such file or directory (os error 2)

The problem is that mask version 0.7.1 cannot read this updated maskfile with powershell blocks. It's trying to run the powershell since those blocks are the last code block in each section.

I had thought that this branch was broken but it was the fact that I wasn't using this version of mask to run the test suite. Completely my bad here... haven't been into this project for awhile and didn't realize what was going on (though i do use mask dozens of times a day 😅). I fixed this locally by running cargo install --force --path . manually instead of mask link and everything works great.

I'm working on a release for this today! Thanks again for all the work you've put into this... including getting CI support setup for windows AND mac! 🎉

Apologies for the delay too. I've been caught up with other projects recently (svelvet) and a little burnt out from working on stuff. Mask is my most important OSS project though, so it should get the most focus going forwards 👍

- name: Checkout master
uses: actions/checkout@master
- name: Verify formatting is correct
run: cargo fmt --all -- --check
Copy link
Owner

Choose a reason for hiding this comment

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

I think you accidentally removed formatting from CI? I'll fix on master so i can get this merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess I did. Woops, sorry about that.

@tensor-programming
Copy link
Contributor Author

Nice to see that this got merged without issue. Glad it wasn't some esoteric problem and just a little user error (happens to the best of us). cheers mate.

@tensor-programming tensor-programming deleted the feat/windows-powershell-support branch April 27, 2020 18:40
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.

Windows support?
2 participants