Coder Social home page Coder Social logo

Comments (4)

miyagawa avatar miyagawa commented on August 16, 2024

I think the intention here is that a) file paths should most always
encoded using the forward slashes, independent of the actual file
system b) portability for windows is not a top priority.

Sent from my iPad

On Oct 19, 2011, at 12:59 AM, Christian Walde
[email protected]
wrote:

I develop on windows and deploy on linux, which means that when i change the carton.lock file, the whole thing gets changed a lot, because doing so on windows results in \ separators, while on linux they all get replaced with / separators.

I'm not sure whether it's worth digging into and what the intended behavior is. Thoughts?

Reply to this email directly or view it on GitHub:
#23

from carton.

wchristian avatar wchristian commented on August 16, 2024

Perfect. For what it's worth: The backward slashes do almost nothing towards windows compatibility, since very few tools i encounter are unable to use them. In fact, more often than not using backward slashes breaks things even on windows. As such i'm perfectly happy to enforce forward slashes everywhere.

You'll be getting a patch for that.

from carton.

miyagawa avatar miyagawa commented on August 16, 2024

Yeah, perl tools are most of the time able to use forward slashes. The only exceptions are when we need to shell out to the commands, like specifying the path for cmd.exe via system.

Also for the note of portability:

While I don't have a big priority on making the Carton code portable as possible, it'd be always good to ensure it works on foreign platforms such as Win32, so long as the code doesn't get a whole mess or too complicated to maintain.

For the future note, your use case of building vs deploying on different platforms is a separate issue that we need to address in the future. For example, some of the modules would require separate Win32:: modules as a dependency on Windows platform. We can expect the same thing for perl versions, such as building the dep list on 5.14 and deploy on 5.8 - because 5.14 has more core modules than on 5.8, chances are you'll miss some of the modules in the carton.lock file.

from carton.

wchristian avatar wchristian commented on August 16, 2024

It's honestly not only perl tools. Whenever i do stuff on the command line i just habitually use / and it's not been an issue for the past few years for me. :)

As for the portability note: I figured that was already adressed by the lib path you use. Sounds like a massive ball of wax to get into. :/

But i guess once i run into actual issues with that, since my dev perl and os are different from my deploy perl and os, i'll be making some suggestions as to how to deal with that.


As for the backslash issue:

I tracked it down and the problem is caused by

That makes it three possible places to fix and i have no idea which one would be appropiate. Thoughts?

from carton.

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.