git creds are not used when install packages
See original GitHub issueContext
- An experiment lives in a private repo
agent.git_user
andagent.git_pass
are configured intrains.conf
- This experiment is a python package installed at runtime
- This python package has dependencies
- Among the dependencies, one is another private repository
Problem
trains-agent
will successfully clone the private repo where the experiments lives using the git credentials configured. But it will fail installing the dependencies, because one of them is a private repo and trains-agent
won’t use the configured git credentials for the installation of the dependencies.
Solution
trains-agent
should use the git credentials for any git operation, regardless of when it happens.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Missing credentials when attempting to install dependency ...
I'm using pip to install my package inside the Docker image, so it doesn't appear to have any notion of the Poetry credentials...
Read more >gitcredentials Documentation - Git
To use a helper, you must first select one to use. Git currently includes the following helpers: cache. Cache credentials in memory for...
Read more >Adding Git credentials on Windows - Stack Overflow
This fix makes using Git credentials more friendly to Windows users: it allows a credential helper to communicate using CR/LF line endings ("DOS...
Read more >Managing Git(Hub) Credentials - usethis
Make sure to use HTTPS URLs, not SSH, when cloning repos or adding new remotes: ... You will have the gitcreds package installed,...
Read more >Managing SSH and Git Credentials in R
Windows does not include a native git installation by default. We recommended to use the latest version of Git for Windows. This bundle...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@H4dr1en yep 😃 Should work with
trains-agent==0.15.1
@H4dr1en makes total sense 😦 I think we will have to make sure we pass the correct git credentials for pip. This means trains-agent will take this line:
and will pass to pip this line instead: