Skip to content

Commit

Permalink
chore: globally replace ftl in go.mod (#1227)
Browse files Browse the repository at this point in the history
Whenever we do `ftl init go ...` in a test, by default the new module
will be configured to pull the FTL source from GitHub. This is both slow
and incorrect. This PR changes that to always use the local FTL.

This has confused me many times.
  • Loading branch information
alecthomas authored Apr 10, 2024
1 parent 9d81977 commit 653ac23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ brew tap TBD54566975/ftl && brew install ftl
set -Eeuxo pipefail
just build ftl
export FTL_ROOT="$(git rev-parse --show-toplevel)"
export PATH="$FTL_ROOT/build/release:$PATH"
export FTL_INIT_GO_REPLACE="github.com/TBD54566975/ftl=$FTL_ROOT"
export PATH="$(git rev-parse --show-toplevel)/build/release:$PATH"
pwd
Expand Down
2 changes: 2 additions & 0 deletions bin/hermit.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ env = {
"FTL_SOURCE": "${HERMIT_ENV}",
"OTEL_METRIC_EXPORT_INTERVAL": "5000",
"PATH": "${HERMIT_ENV}/scripts:${HERMIT_ENV}/frontend/node_modules/.bin:${PATH}",
"FTL_INIT_GO_REPLACE": "github.com/TBD54566975/ftl=${HERMIT_ENV}",

}
sources = ["env:///bin/packages", "https://github.com/cashapp/hermit-packages.git"]

0 comments on commit 653ac23

Please sign in to comment.