"git.earlybird.gay/today-engine/include",
}
+// SetNotEligible marks a package as ineligible for including files.
+// You should use the arguments of include to to this if you can, but if you are
+// using a package that passes through to include, you can call this in an init
+// function.
+func SetNotEligible(pkg string) {
+ callStackNotEligible = append(callStackNotEligible, pkg)
+}
+
func isNotEligible(caller string, ignorePackages []string) bool {
return slices.ContainsFunc(callStackNotEligible, func(notEligible string) bool {
return strings.HasPrefix(caller, notEligible+".")