From 76a6d6bed31fd9c17ff54c989928f5bc703d3e9f Mon Sep 17 00:00:00 2001 From: Adrian Hesketh Date: Thu, 3 Jun 2021 21:47:49 +0100 Subject: [PATCH] updated gorelaser config --- .goreleaser.yml | 2 +- Makefile | 4 ++-- README.md | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 5dd661e38..974a8db92 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,7 +2,7 @@ builds: - env: - CGO_ENABLED=0 - dir: cmd + dir: cmd/templ goos: - linux - windows diff --git a/Makefile b/Makefile index 373159d08..fa416214e 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ install-snapshot: # Clear logs. - rm cmd/lspcmd/*.txt || true + rm cmd/templ/lspcmd/*.txt || true # Install the latest version. - cd cmd && go build -o ~/bin/templ + cd cmd/templ && go build -o ~/bin/templ build-snapshot: goreleaser build --snapshot --rm-dist diff --git a/README.md b/README.md index 59f9b84f1..c25527507 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## Getting started -* Install the `templ` command-line tool: `go install github.com/a-h/templ/cmd/templ` +* Install the `templ` command-line tool: `go install github.com/a-h/templ/cmd/templ@latest` * Create a `*.templ` file containing a template. * Run `templ generate` to create Go code from the template. @@ -356,8 +356,8 @@ To add extensive debug information, you can include additional args to the LSP, "templ": { "command": "templ", "args": ["lsp", - "--log", "/Users/adrian/github.com/a-h/templ/cmd/lspcmd/templ-log.txt", - "--goplsLog", "/Users/adrian/github.com/a-h/templ/cmd/lspcmd/gopls-log.txt", + "--log", "/Users/adrian/github.com/a-h/templ/cmd/templ/lspcmd/templ-log.txt", + "--goplsLog", "/Users/adrian/github.com/a-h/templ/cmd/templ/lspcmd/gopls-log.txt", "--goplsRPCTrace", "true" ], "filetypes": ["templ"]