@@ -469,60 +469,6 @@ Example usage:
469
469
loki_password : ${{ secrets.LOKI_PASSWORD || '' }}
470
470
` ` `
471
471
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
-
526
472
### Viewing
527
473
528
474
#### Local networks
0 commit comments