github.com/status-im/status-go@v1.1.0/_assets/docs/DEPENDENCIES.md (about)

     1  # Dependency Management
     2  
     3  Dependencies are managed by Go modules. They should be managed automatically and additionally we vendor all dependencies into `vendor/`. More on [Go Modules](https://github.com/golang/go/wiki/Modules).
     4  
     5  ## Adding and updating a dependency
     6  
     7  1. `$ get get -u github.com/foo/bar`
     8  2. `$ make vendor`
     9  3. Commit changes.
    10  
    11  ## Updating go-ethereum
    12  
    13  Remember that we use our fork of go-ethereum. It is included in the list of dependencies (`go.mod`) as a regular package: `github.com/ethereum/go-ethereum v1.8.27`, however, at the bottom of `go.mod` there is a replace directive. So, if you want to upgrade go-ethereum, these two lines need to be updated.
    14  
    15  ## Committing changes
    16  
    17  Make sure that you don't commit unnecessary changes to `go.mod` and
    18  `go.sum`.
    19  
    20  ## Common issues
    21  
    22  1. Relative imports and "Could not introduce package, as its subpackage does not contain usable Go code". See [this comment](https://github.com/golang/dep/issues/899#issuecomment-317904001) for more information.