Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

Commit 4112d72

Browse files
committed
remove local replace directive for gota dependency
The CI release was failing because go.mod had a replace directive pointing to ../gota which doesn't exist in the CI environment. Pushed the gota fork changes to STR-Consulting/gota with tag v0.8.4, then removed the replace directive so the module resolves from GitHub.
1 parent 8cbc99f commit 4112d72

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
# gozer-ccyf
3+
title: Integrate with gopls to discover custom template functions
4+
status: in-progress
5+
type: feature
6+
created_at: 2026-01-18T19:42:01Z
7+
updated_at: 2026-01-18T19:42:01Z
8+
---
9+
10+
Add support for discovering custom template functions (like Sprig functions or project-specific functions) so they aren't flagged as 'function undefined' errors.
11+
12+
## Problem
13+
After fixing builtin function false positives, custom functions added via template.FuncMap are still flagged as undefined. Users defining functions like `lower`, `upper`, `default` (Sprig) or custom project functions get errors.
14+
15+
## Potential Approaches
16+
1. **gopls integration**: Query gopls to find template.FuncMap definitions in Go code
17+
2. **Configuration file**: .gozer.json or similar to declare additional functions
18+
3. **Sprig preset**: Built-in knowledge of common Sprig functions
19+
4. **Hybrid**: Combine approaches
20+
21+
## Research Needed
22+
- How does gopls expose symbol/type information?
23+
- Can we find template.FuncMap assignments via LSP?
24+
- What's the best UX for configuration?

zed-ext/extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id = "go-template-lsp"
22
name = "Go Template LSP"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
schema_version = 1
55
authors = ["Jason Abbott", "Jason Staten", "yayolande", "Nikita Galaiko", "Mahmud Ridwan"]
66
description = "Go template support with LSP (hover, diagnostics, go-to-definition)"

0 commit comments

Comments
 (0)