5
Lensflare
23h

It’s a freaking joy to work with SPM (swift package manager)

I needed to fix a bug in a 3rd party lib, so I just changed how the lib is included from a git url to local file system.

Then I could edit the code of the lib and the changes are immediately reflected in the project. So I could see if the fix is working.

Now that I found a fix, I can make a PR for the lib repo and when it’s merged I switch back from local to git url.

Such an upgrade from traditional package managers such as nuget, npm, cocoa pods, etc.

Comments
  • 3
    You can point a dependency in your virtual environment pyproject.yaml to a local project. You can also reference a local project in VisualStudio instead of the nuget version....

    ..pretty sure you can do this in every package manager out there.
  • 1
    @djsumdog you can’t without circumventing the package manager itself.
    Sure you can add the project from a local source instead of using nuget.
    But then you aren’t using nuget.
    That’s the problem with centralized package managers.
    SPM is not centralized.
  • 3
    this is how npm worked for me?
  • 1
    @Lensflare Why not just create a fork repo?

    And AFAIK in both in node and python you still it with the original name, you just set the version to the git url/path. But in python you can just dynamically modify the module path, it was even the standard for google app engine projects for the longest time (vendoring libraries)

    Either

    import sys

    sys.path.append("path")

    or setting PYTHONPATH env (same as path with ; separator)

    But also keep the positive rants flowing :D
  • 1
    @BordedDev pointing it to a fork with a url instead of a local copy would mean that you need to commit and push your changes to test if it works.
    Modifying the code directly locally is much faster. You can practically have it in a hot reload loop (Preview in SwiftUI land).

    And of course your local copy can be a git fork so that you can push the changes when you are done.
  • 2
    Great, but not (no longer?) unique. At least it's there in JS/PHP ecosystems too.
  • 2
    @webketje nice. I admit, I’m not up to date with the other stuff.
  • 0
    You're a cunt and I hate you
  • 0
    @antigermanist I know. You just won't shut up about it and spam it in every rant.
    You are really obsessed with me it seems.
  • 0
    @Lensflare if everywhere you go it smells like poop check your shoe

    you act like such a Nazi for no reason
  • 0
    @jestdotty nowhere I go smells like poop. It only reeks when I talk to very specific people.

    What is it this time, that makes me a Nazi? Is it because of the answer I gave to our shitwaffle ostream or is it something else that I said?
  • 0
    @Lensflare you came to my rant to call me an asshat, scum
  • 0
    @Lensflare you can't smell it because you're german

    Sometime we get literal poo smell from the rurh valley's industries
  • 0
    @Lensflare and also don't insult waffles!!!! WAFFLES ARE GREAT.

    You cannot find a more perfect balance of sweet and fulfilling. Respect my cultural heritage you currywurst
  • 0
    @antigermanist

    > you came to my rant to call me an asshat, scum

    Yes and now you spam 5 comments per second on each rant that you find my comments in.

    Relax, I’m sure I’m not the first one to point out what a huge dumbshit you are.
    It’s ok to be dumb. But it’s not ok to be an asshole.
  • 0
    @antigermanist

    > Respect my cultural heritage you currywurst

    Mhh I love currywurst! How about you?
  • 0
    @Lensflare i never understood what that was
Add Comment