Repository navigation
Replies: 1 comment
|
if I'm not mistaken if |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm looking to conditionally exclude a file from the
contentslist of a package. We use GoReleaser snapshot builds to set feature flags and need to install an extra configuration file only for those builds.Initially, I hoped to template the
type— e.g.,type: {{ if .IsSnapshot }}deb{{ else }}ignore{{ end }}— but that attribute doesn't support templating. I also looked into templating the src attribute, but there doesn't appear to be a mechanism to skip missing files (rather than throwing an exception).Is there a feature or workaround I've missed that would allow me to achieve this?
All reactions