# Package Managers
This document contains tips and tricks for running package managers on your local machine.
## Git
Git URLS can be rewritten [with a config entry](https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf).
```bash
git config --global url."http://valist.local:9000/git/".insteadOf "https://valist.local"
```
## Go
Go modules can be accessed directly via source control or through a [proxy](https://golang.org/ref/mod#module-proxy).
The simplest approach is to use the [git rewrite rule](#Git) to allow access on a custom port.
Another approach is to return a meta tag from a web server that points to your git repository.
```html
<html>
<head>
<meta name="go-import" content="valist.local/test/go git http://valist.local:9000/test/go">
</head>
</html>
```
This may require you to set the following environment variables.
```
GOPRIVATE=valist.local
GOINSECURE=valist.local
```
## Docker
Docker requires explicit rules in `/etc/hosts` due to [this bug](https://github.com/docker/for-mac/issues/3611).
```
127.0.0.1 valist.local
```