Skip to content

Commit fcae0d3

Browse files
authored
[tmpnet] Remove obsolete readme content (#3827)
1 parent f99df24 commit fcae0d3

File tree

1 file changed

+0
-54
lines changed

1 file changed

+0
-54
lines changed

tests/fixture/tmpnet/README.md

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -469,60 +469,6 @@ Example usage:
469469
loki_password: ${{ secrets.LOKI_PASSWORD || '' }}
470470
```
471471
472-
The action requires a flake.nix file in the repo root that enables
473-
availability of promtail and prometheus. The following is a minimal
474-
flake that inherits from the avalanchego flake:
475-
476-
```nix
477-
{
478-
# To use:
479-
# - install nix: https://github.com/DeterminateSystems/nix-installer?tab=readme-ov-file#install-nix
480-
# - run `nix develop` or use direnv (https://direnv.net/)
481-
# - for quieter direnv output, set `export DIRENV_LOG_FORMAT=`
482-
483-
description = "VM development environment";
484-
485-
inputs = {
486-
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2405.*.tar.gz";
487-
# Make sure to set a SHA or tag to the desired version
488-
avalanchego.url = "github:ava-labs/avalanchego?ref=[sha or tag]";
489-
};
490-
491-
outputs = { self, nixpkgs, avalanchego, ... }:
492-
let
493-
allSystems = builtins.attrNames avalanchego.devShells;
494-
forAllSystems = nixpkgs.lib.genAttrs allSystems;
495-
in {
496-
devShells = forAllSystems (system: {
497-
default = avalanchego.devShells.${system}.default;
498-
});
499-
};
500-
}
501-
```
502-
503-
The action expects to be able to run bin/tmpnetctl from the root of
504-
the repository. A suggested version of this script:
505-
506-
```bash
507-
#!/usr/bin/env bash
508-
509-
set -euo pipefail
510-
511-
# Ensure the go command is run from the root of the repository
512-
REPO_ROOT=$(cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )
513-
cd "${REPO_ROOT}"
514-
515-
# Set AVALANCHE_VERSION
516-
source ./scripts/versions.sh
517-
518-
# Install if not already available
519-
if ! command -v tmpnetctl &2> /dev/null; then
520-
# An explicit version is required since a main package can't be included as a dependency of the go module.
521-
go install github.com/ava-labs/avalanchego/tests/fixture/tmpnet/tmpnetctl@${AVALANCHE_VERSION}
522-
fi
523-
tmpnetctl "${@}"
524-
```
525-
526472
### Viewing
527473
528474
#### Local networks

0 commit comments

Comments
 (0)