Closed WhiffleFish closed 1 year ago
@WhiffleFish this is amazing. Can you add a comment to the yml file explaining that the conversion of symbols to strings is to maintain OS compatibility?
I understand why we need joinpath
but I don't understand why we need to convert Symbols to string instead of using literal strings directly? For example, isn't string(:lib) === "lib"
irrespective of the OS?
Maybe because it is in a quoted shell command?
I assume that it has to do with the way windows handles various quotes, so you can't use the trick where ' are used to create arguments with " in them. Thus, we have to avoid using " anywhere in the command.
@WhiffleFish is this correct? Can you add the comment requested above so that I can merge this?
Yep, that is entirely correct. I figured there'd be a way to escape the quotes (\"
) in a way that would work across operating systems, but haven't been able to find a way to do so.
@WhiffleFish thanks! It seems like there should be a recommended way that is more straightforward, but this is great for now.
*sigh* now we have to make all of our gh actions scripts windows-proof. Yet another man-hour of humanity's time that Microsoft has wasted.