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 codegen windows #661

Merged
merged 3 commits into from
Jan 3, 2023
Merged

Conversation

milesziemer
Copy link
Contributor

Issue #, if available:
#568
Description of changes:
The use of Paths.get when creating an import/export path, ie. import { Foo } from ./path, caused tests to fail on Windows because the tests expect unix-like paths. For portability and consistency, the places where import/export paths are created in SymbolVisitor and ImportDeclarations were refactored to always create unix-like path separators regardless of OS.

Additionally, CI was added for Windows (and MacOS since it wasn't there already).

Testing details:

  • Ran ./gradlew clean build successfully on Windows and Mac

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@milesziemer
Copy link
Contributor Author

Opened this as a draft because it feels a little flimsy. There's a few places where we have to do the same string manipulation, that I think could be refactored, but I wasn't sure exactly how to do it.

@milesziemer milesziemer marked this pull request as ready for review January 3, 2023 18:05
@milesziemer milesziemer requested a review from a team as a code owner January 3, 2023 18:05
@srchase srchase merged commit 206fa93 into smithy-lang:main Jan 3, 2023
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
* Fix codegen on Windows

* Add Windows and Mac OS CI

* Fix failing CI
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