diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53dac7b..52fb6d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,32 +10,7 @@ env: GO_VERSION: '1.22.4' jobs: - lint: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GO_VERSION }} - - name: Run golangci-lint - uses: golangci/golangci-lint-action@v6 - with: - working-directory: ./cli - version: latest - - test: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GO_VERSION }} - - name: Run go test - working-directory: ./cli - run: go test -v ./... - release: - needs: [lint, test] runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 08660e2..24f120a 100644 --- a/README.md +++ b/README.md @@ -19,17 +19,29 @@ Also, only contracts inside foundry projects are supported as of now. For development, we require [the `go` toolchain to be installed](https://go.dev/doc/install). +## How to install + +### Using `go` toolchain + +To install the devnet using the `go` toolchain: + +```sh +go install github.com/Layr-Labs/avs-devnet/cmd/avs-devnet +``` + > [!IMPORTANT] -> To be able to [install the CLI via `go`](#installation), you'll need to add `$HOME/go/bin` to your `PATH`. -> You can do so by adding to your `~/.bashrc` (or the equivalent for your shell) the following line: +> To be able to use the CLI when installed via `go`, you'll need to add `GOBIN` (by default `$HOME/go/bin`) to your `PATH`. +> You can do so by adding to your `~/.bashrc`, or the equivalent for your shell, the following line: > > ```bash > export PATH="$PATH:$HOME/go/bin" > ``` +> +> More information [on the Go wiki](https://go.dev/wiki/GOPATH). -## Installation +### With a local copy of the repo -To build and install the CLI locally, run: +To build and install the CLI with a local copy of the repo, first clone the repo, and then run: ```sh make deps # installs dependencies diff --git a/RELEASE.md b/RELEASE.md index 4f2a13a..ffb5788 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -7,6 +7,8 @@ To release a new version of the CLI, follow the steps below: > [!WARNING] > You need to have write permission to this repo to release a new version +- [ ] Check the last CI run on `main` succeeded. + - [ ] Checkout `main` and pull the latest changes: ```sh diff --git a/src/cmds/flags/flags.go b/src/cmds/flags/flags.go index 635cf40..12d5928 100644 --- a/src/cmds/flags/flags.go +++ b/src/cmds/flags/flags.go @@ -6,7 +6,7 @@ import "github.com/urfave/cli/v2" // TODO: move to constants. // //nolint:gochecknoglobals // this is a constant -var DefaultKurtosisPackage string = "" +var DefaultKurtosisPackage string = "github.com/Layr-Labs/avs-devnet/kurtosis_package" //nolint:gochecknoglobals // these are constants var (