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(Build): Run Kaoto in Windows #1661

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Nov 26, 2024

Context

Currently, dev mode is broken in Windows since the vite.config.js file is not copying the catalog files properly. In addition to that, the file paths are generated using the underlying OS path separator.

Changes

The fix is to use the normalizePath function from vite, so it uses a Linux-like path to copy the files. From the Catalog generator part, it forces the use of the / as a path separator so it loads properly in the browser.

fix: #1654

Currently, dev mode is broken in Windows since the `vite.config.js` file
is not copying the catalog files properly. In addition to that, the
files path are generated using the underlying OS path separator.

The fix is to use the `normalizePath` function from `vite`, so it uses a
linux-like path to copy the files. From the Catalog generator part, it
forces to use the `/` as path separator, so it loads properly in the
browser.

fix: KaotoIO#1654
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@51012ff). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1661   +/-   ##
=======================================
  Coverage        ?   84.07%           
  Complexity      ?      365           
=======================================
  Files           ?      285           
  Lines           ?     8161           
  Branches        ?     1573           
=======================================
  Hits            ?     6861           
  Misses          ?     1211           
  Partials        ?       89           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lordrip lordrip marked this pull request as ready for review December 3, 2024 12:08
Copy link

sonarcloud bot commented Dec 3, 2024

@lordrip lordrip merged commit 3e45d22 into KaotoIO:main Dec 3, 2024
13 checks passed
@lordrip lordrip deleted the fix/run-kaoto-windows branch December 3, 2024 13:41
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.

Kaoto on Windows can't load catalog
2 participants