File kind should parse go.mod
K
Kristoffer Smedlund
as a workaround, here is our mapping for go.mod
- kind: file
port:
entity:
mappings:
blueprint: '"githubRepository"'
identifier: '.repo.full_name + ":gomod"'
properties:
language_version: .item.version
itemsToParse: >-
.file.content | split("\n") | map(capture("^go (?<version>\\S+)$")) |
flatten | select(length>0)
selector:
files:
- path: '**/go.mod'