Git Product home page Git Product logo

Comments (4)

boweeb avatar boweeb commented on September 26, 2024 1

@cavcrosby -- Thanks for the reminder! As often happens with personal side projects (at least with me), life got the way, and I lost track. This poke has rekindled my interest. I'll see what I can do to clean up and push what I have soon. It may not be functional yet, but it's better to share something than nothing.

Also, I'm embarrassed to realize I left this issue dangling. I'll confirm what I did about it and either move this forward or close it out.

from stow.

aspiers avatar aspiers commented on September 26, 2024

I have a what's perhaps a Perl noob question. bin/stow.in notes (in a comment) after initializing Stow that "current dir is now the target directory".

See:

stow/bin/stow.in

Lines 476 to 477 in 4ef5eca

my $stow = new Stow(%$options);
# current dir is now the target directory

Question: I'm having trouble finding the mechanism that is actually responsible for this. Can someone provide a hint?

Hmm. At a quick glance I can't see any chdir() call which happens before this point, and this comment is extremely old, so it's probably an erroneous remnant of some refactoring. I'd suggest ignoring it for now.

For somewhat relevant context, I'm in the process of porting stow to Python.

Awesome!

Since this is for personal recreation (yes, I'm a nerd), I don't feel bound to backward compatibility or practical production constraints (eg. avoiding 3rd party libs); however, with #65 (comment) in mind, I will freely make it available in case @aspiers or the community finds it a useful reference.

Please do! If you are able to convert the existing Perl test suite over too then that would give us a ton of confidence that the Python implementation achieves equivalent behaviour.

I'm about 1/2 done already (started this week), but I'm currently hung up on this question I asked above.

OK cool, please keep us posted!

from stow.

cavcrosby avatar cavcrosby commented on September 26, 2024

Since this is for personal recreation (yes, I'm a nerd), I don't feel bound to backward compatibility or practical production constraints (eg. avoiding 3rd party libs); however, with #65 (comment) in mind, I will freely make it available in case @aspiers or the community finds it a useful reference. I'm about 1/2 done already (started this week), but I'm currently hung up on this question I asked above.

It's coming about to a year since you've mentioned this @boweeb, did you happen to make any further progress?

from stow.

aspiers avatar aspiers commented on September 26, 2024

@boweeb Now that the cobwebs are blown out of my head regarding how Stow works, I can confidently say that this was simply an outdated comment. I've now removed it.

Please keep us posted on any Python rewrite. I think it's a super interesting initiative! Realistically Perl is getting closer and closer to extinction these days (although like COBOL I'm sure it will never die).

from stow.

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.