Skip to content

Commit

Permalink
doc - update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Strappazzon C committed Dec 1, 2023
1 parent 30780eb commit cf3af7a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,20 @@ To see more examples, please go to [this directory](https://github.com/the-hotel
```
make tests
```

## Local usage

To point to the local version of a dependency in Go rather than the one over the web, use the replace keyword.

And now when you compile this module (go install), it will use your local code rather than the other dependency.

```bash
go mod edit -replace github.com/the-hotels-network/go-tinybird=$HOME/go/src/github.com/the-hotels-network/go-tinybird
```

Revert replacement:

```bash
go mod edit -dropreplace github.com/the-hotels-network/go-tinybird
go get -u
```

0 comments on commit cf3af7a

Please sign in to comment.