Bjørn Erik Pedersen
071f8b4466
tpl: Sync Go template packages with the Go 1.22.5 source
2024-08-01 12:07:27 +02:00
Bjørn Erik Pedersen
57206e7274
Upgrade to Go 1.22.1
...
Closes #12250
2024-03-15 16:40:36 +01:00
Bjørn Erik Pedersen
9f978d387f
Pull in the latest code from Go's template packages ( #11771 )
...
Fixes #10707
Fixes #11507
2023-12-04 12:07:54 +01:00
Bjørn Erik Pedersen
24b1be45c1
Go 1.21 Upgrade
...
Fixes #11351
2023-08-23 21:49:27 +02:00
Bjørn Erik Pedersen
ee359df172
Fix upstream Go templates bug with reversed key/value assignment
...
The template packages are based on go1.20.5 with the patch in befec5ddbbfbd81ec84e74e15a38044d67f8785b added.
This also includes a security fix that now disallows Go template actions in JS literals (inside backticks).
This will throw an error saying "... appears in a JS template literal".
If you're really sure this isn't a security risk in your case, you can revert to the old behaviour:
```toml
[security]
[security.gotemplates]
allowActionJSTmpl = true
```
See https://github.com/golang/go/issues/59234
Fixes #11112
2023-06-15 23:04:33 +02:00
Bjørn Erik Pedersen
094135ff96
tpl/internal: Sync Go template src to Go 1.20
...
Updates #10691
2023-02-22 11:26:52 +01:00
Bjørn Erik Pedersen
f6ab9553f4
tpl/internal: Sync go_templates
...
Closes #10411
2022-11-14 22:31:50 +01:00
Bjørn Erik Pedersen
65a78cae1e
tpl: Sync go_templates for Go 1.18
...
Using Go tag go1.18 4aa1efed4853ea067d665a952eee77c52faac774
Updates #9677
2022-03-16 08:54:25 +01:00
Bjørn Erik Pedersen
ccb822eb5a
Pull in latest Go template source
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
cf3e077da3
tpl/internal: Synch Go templates fork with Go 1.16dev
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
10ae7c3210
Improve LookPath
2020-12-19 17:03:07 +01:00
Bjørn Erik Pedersen
718e09ed4b
tpl/internal/go_templates: Revert formatting
...
Should make future fork synch easier.
2020-12-03 13:47:43 +01:00
Bjørn Erik Pedersen
d90e37e0c6
all: Format code with gofumpt
...
See https://github.com/mvdan/gofumpt
2020-12-03 13:12:58 +01:00
Bjørn Erik Pedersen
6c3c6686f5
Fix Go template script escaping
...
Fixes #6695
2020-05-23 22:00:34 +02:00