Skip to content

Allow /local/path for *_URL parameters within config file #159

Open
@ryanRfox

Description

@ryanRfox

Problem

As a dev I may frequently modify go-algorand or indexer code on my local file system. I don't want to push to GitHub each change prior to testing the build using sandbox. Currently, supplying /path/to/my/repo for ALGOD_URL field within my.config configuration file results in the error "fatal: /path/to/my/repo does not exist". I'll make the assumption the INDEXER_URL behaves similarly.

Solution

Proposed by @joe-p:

  1. Comment out this line:
    git clone --single-branch --branch "${BRANCH}" "${URL}"
git clone --single-branch --branch "${BRANCH}" "${URL}"
  1. Then add a COPY command similar to this line that copies in the repo to the container:
    COPY . /tmp
COPY . /tmp
  1. investigate/modify for indexer as well.

  2. Solution should parse the URL field value and switch based on the source.

Dependencies

None known.

Urgency

Nice to have.

h/t @riolavigne

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions