serverless / serverless-python-requirements

⚡️🐍📦 Serverless plugin to bundle Python packages
MIT License
1.11k stars 290 forks source link

feat: support custom git config #833

Closed shaug closed 6 months ago

shaug commented 8 months ago

This allows for, among other things, relying on git URL mappings, which can normalize protocols:

git config --global url."ssh://git@github.com".insteadOf "https://github.com"

Or add credentials from environment variables for a CI tool:

git config --global \
    url."https://${USERNAME}:${PASSWORD}@github.com/${OWNER}/".insteadOf \
    "https://github.com/${OWNER}/"

I have a project relying on this change and it is working spendidly.

pgrzesik commented 8 months ago

Hey @shaug - thanks a lot for the proposal, overall it makes sense 👍 There are failing checks in CI though (prettier-related it seems), could you please take a look into that?

shaug commented 8 months ago

Thanks, @pgrzesik. The code has been prettified.

pgrzesik commented 8 months ago

Hey @shaug - unfortunately it seems like the tests are failing as well - if you'd be able to take a look it will be much appreciated 🙇

shaug commented 6 months ago

I'm having too many problems figuring out how to get the unit tests to work. I'll figure out a different solution.

pgrzesik commented 6 months ago

Sounds good, please let me know if there's a way I could help 👍