motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.77k stars 319 forks source link

Windows run withour docker and it give you poth error #490

Open dhruv-kabariya opened 1 year ago

dhruv-kabariya commented 1 year ago

[Short description of problem here]

  1. download Windows binary and try to start the server it will give you a path error

Reproduction Steps:

  1. Download the Windows binary
  2. extract the tar file and try to start the server on Windows
  3. it will give you "could not build a repository for the database: could not create a file system repository: open /D:/mederec/backend/api-gateway/janus/janus/apis: The filename, directory name, or volume label syntax is incorrect." error every time

Expected behavior:

The server should start

Observed behavior:

This is happening because of path differences in Windows and Linux systems. ( Actually, I have debugged the problem and found the solution in the file system should the parameter need to change it is adding an extra "/" at the start of path in Windows however it shouldn't)

Janus version: janus_4.0.0_windows_amd64.tar ( latest build ) OS and version: Windows 10

dhruv-kabariya commented 1 year ago

Also, sometimes in the formated string logs %w is written. Is this correct or need to change to %v