8

God, so tilted right now, after having to "urgently" (joke's on them, they will get charged the urgent rate) check why some deployments weren't working due to some npm dependencies not being found.

(Just from mentioning npm you surely think I'm gonna bash JS, but no!)

I'm tilted by TS devs that don't bother to learn the very basics of git pathspecs and just add "dist" to their .gitignore, not knowing that it's gonna exclude any file or directory named "dist" *ANYWHERE* in the project.

And when your poor CI pipeline tries to transfer the build artifacts (so, keeping the .gitignore excludes but manually including node_modules and dist), it excludes the dist dir in some packages and wrecks the deployment.

Please,, please, PLEASE.

if you want to:

A) Make your entry relative to the .gitignore...

Put a slash first.

B) make it only match directories and not files...

Put a slash last.

Comments
  • 2
    That's clearly a CI issue, .gitignore is meant for versioning and not whatever the CI copies
    Can still un-ignore some dist paths
    You rather want to edit .gitignore 50x in a monorepo or accidentally commit build outputs?
  • 1
    @devRancid

    More like, it's not my job to deal with that.

    It's not my issue. I'm told "exclude this and include this".

    Sure, I know how TS works, but I'm not paid to care what the devs do with the gitignore, and not paid to care what idiosyncrasies they follow.

    If you tell me "ignore what's in gitignore except for build artifacts", I'm gonna do just that.

    And I could bet at least half of people reading this (and I'm being conservative) didn't actually know what I posted.
  • 1
    In adding to that, most JS devs have no clue of all the shit their retarded ecosystem produces.

    I don't care to learn it. If they tell me "ignore it cuz it's in gitignore", I do just that.

    In any case, I don't really care, I'm a chunky less poorer thanks to it, so, please keep not knowing shit about your VCS. 😂
  • 0
    HEY, learned something new!

    Thanks man.

    Only half in jest.
Add Comment