Giter Site home page Giter Site logo

Test our windows support about okteto HOT 6 CLOSED

okteto avatar okteto commented on May 11, 2024
Test our windows support

from okteto.

Comments (6)

dadoeyad avatar dadoeyad commented on May 11, 2024

I'm testing it!

I'm getting an error when okteto tries to execute syncthing

okteto up
Installing dependencies...
syncthing.exe 16.56 MiB / 16.56 MiB [======================================================================] 100.00% 7s
                                                           βœ•  Exec: "C:\\Users\\dado_/.okteto/syncthing": file does not exist

I also tried executing the syncthing bin installed in .okteto and got the same error.

I saw that syncthing is available via chocolatey and I installed it but okteto is installing it's own binary.

May I suggested adding Okteto to be installed by chocolatey? if I have time this weekend I might check how chocolatey packages are created.

from okteto.

dadoeyad avatar dadoeyad commented on May 11, 2024

Wait I just noticed that this is the CND repo and not Okteto. My bad!
Couldn't find the Okteto repo for issues though?

from okteto.

rberrelleza avatar rberrelleza commented on May 11, 2024

You're in the right repo for those issue. CND is the core library of Okteto πŸ‘ .

Thanks for testing it on windows! The current design is for the binary itself to download the dependency. We did it that way because most of our users where directly downloading the binary, and so that we didn't depend on external package managers (brew for macOS, chocolatey for Windows, etc...).

As for the issue you ran into, I think there might two issues there:

  1. https://github.com/cloudnativedevelopment/cnd/blob/master/pkg/syncthing/syncthing.go#L33 assumes that the name of the binary is "syncthing", but based on the screenshot it looks like for windows is "syncthing.exe". Maybe we need an OS-dependent way of generating that binary name?
  2. Looks like we're using the wrong file separator on Windows( "/" instead of ""). Based on golang/go#1423, it seems like we need to use filepath.Join instead of path.Join when creating paths.

Filed #202 and #203 to track your findings.

from okteto.

dadoeyad avatar dadoeyad commented on May 11, 2024

Ok. Before I go any further and to be able to help better. I have to say I'm not very experienced in Windows command line. It just happened that I thought of testing this today.

I was trying to run okteto in bash using cmder. I couldn't/didn't know how to run it in cmd or PowerShell..

I don't wanna assume that they run the same way. So maybe running from bash caused the path problem? if so, could you please let me know how can I run the binary in cmd or PowerShell so I can test again? :)

from okteto.

rberrelleza avatar rberrelleza commented on May 11, 2024

This is great @dadoeyad . We'll add a guide to our docs on how to run on windows, both on powershell and on the regular cmd line.

I don't think cmder had anything to do with the issue you encountered. I think it's related to how we calculate paths and binary names.

from okteto.

dadoeyad avatar dadoeyad commented on May 11, 2024

I think better docs will help so thanks!!

Please let me know when the new okteto binary is released and I'll test again.

from okteto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.