diff --git a/articles/gomodsri.md b/articles/gomodsri.md index 8dda2d8cb7679b0fa0603377cbcbca2593f3f5eb..2684f50c0b816c2e6401d2a770ee5b19f2be8cb0 100644 --- a/articles/gomodsri.md +++ b/articles/gomodsri.md @@ -1,6 +1,7 @@ +++ title = "gomodsri" summary = "Using tailscale/nardump to generate a go module SRI without building first" +### The problem date = 2024-03-10 category = "Nix" +++ diff --git a/templates.templ b/templates.templ index 912542a625ac0847b82b52d54ad021328ea91716..00a0b9bdb66eba2b0398e66c8b2149c410204659 100644 --- a/templates.templ +++ b/templates.templ @@ -54,7 +54,7 @@

{ article.Title }

{ article.Category }

-package main +
diff --git a/templates_templ.go b/templates_templ.go index 3e781cce77b0a845b8054ebf0c0fed2cdae9aa72..fb1535bdc024f4144c7e637edb5aa8912727aa36 100644 --- a/templates_templ.go +++ b/templates_templ.go @@ -227,34 +227,20 @@ if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } // Code generated by templ - DO NOT EDIT. -import "context" + if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var14 string // Code generated by templ - DO NOT EDIT. -import "bytes" - if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates.templ`, Line: 56, Col: 84} + //lint:file-ignore SA4006 This context is only used if a nested component is present. -import "github.com/a-h/templ" - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } -// Code generated by templ - DO NOT EDIT. return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err -//lint:file-ignore SA4006 This context is only used if a nested component is present. import "github.com/a-h/templ" - var templ_7745c5c3_Var15 string - templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.JoinStringErrs(article.Date.Format("Mon, 02 Jan 2006")) - if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates.templ`, Line: 56, Col: 128} } func baseTemplate(title, description string) templ.Component { -import "github.com/a-h/templ" +// Code generated by templ - DO NOT EDIT. if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -270,8 +257,9 @@ if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { +import "context" return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { -// Code generated by templ - DO NOT EDIT. +import "io" if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }