Skip to content

Commit 6e57df9

Browse files
committed
mention ignoring licenses
1 parent d42f843 commit 6e57df9

File tree

1 file changed

+2
-0
lines changed
  • docs/maintainer/example_recipes

1 file changed

+2
-0
lines changed

docs/maintainer/example_recipes/go.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ This recipe template supports different features:
6262
- Ensure only binary is created by using `strict: true` in the `package_contents` tests.
6363

6464
If your package requires `cgo` instead of `go-nocgo`, you can use `${{ compiler("cgo") }}` instead to build the package. By default, the `go-nocgo` compiler [is used](https://github.com/conda-forge/staged-recipes/blob/main/.ci_support/linux64.yaml).
65+
66+
Sometimes, `go-licenses` might fail to detect licenses for some packages. In such cases, you can manually download the license file from the official source and add `--ignore github.com/bad-package/bad-package` to the `go-licenses` invokation. See [here](https://github.com/conda-forge/k9s-feedstock/blob/7929e0d86c829ba2ca172f08926f9fb7e6398247/recipe/recipe.yaml) for an example.

0 commit comments

Comments
 (0)