Skip to content

yq library not working as intended Β #52

@RonTuretzky

Description

@RonTuretzky

Describe the bug
When running the command source source-env.sh [CHAIN] as described here and following the installation commands here the command outputs the following


Error: unknown command "e" for "yq"

Did you mean this?
        new

Run 'yq --help' for usage.
Error: unknown command "e" for "yq"

Did you mean this?
        new

Run 'yq --help' for usage.
Error: unknown command "e" for "yq"

Did you mean this?
        new

Run 'yq --help' for usage.
Environment variables set:
CHAIN_ID:
EXECUTOR_MULTISIG:
FOUNDRY_FUZZ_RUNS:

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repository
  2. Install yq
  3. run the command
  4. See error

Expected behavior
For the script to properly pull from the config and initalize the env variables

Screenshots
image

Environment
The error was produced

  • Ubuntu on WSL
  • Docker
  • DevContainer extension from visual studio code

Solution

  • Installing yq using the following commands
curl -Lo yq https://github.com/mikefarah/yq/releases/download/v4.11.2/yq_linux_amd64
chmod +x yq

And amending the script to use ./yq instead of yq #!/bin/bash
Or fixing the dockerfile to download the correct version of yq

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 BugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions