Skip to content

Commit

Permalink
release process: fix metadata logic (#4836)
Browse files Browse the repository at this point in the history
We got 0.42.0 twice when version/version.go already was "0.42.0".

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
  • Loading branch information
srenatus committed Jul 1, 2022
1 parent 2f169d9 commit d5b8a61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions build/check-working-copy.sh
Expand Up @@ -26,5 +26,7 @@ if [[ "${HAS_CHANGES}" == "1" ]]; then
echo ""
echo "git status"
git status
echo "git diff"
git diff
exit 1
fi
4 changes: 0 additions & 4 deletions internal/cmd/genbuiltinmetadata/main.go
Expand Up @@ -13,15 +13,11 @@ import (
"github.com/open-policy-agent/opa/ast"
"github.com/open-policy-agent/opa/internal/compiler/wasm"
"github.com/open-policy-agent/opa/types"
"github.com/open-policy-agent/opa/version"
)

func main() {
f := ast.CapabilitiesForThisVersion()
sorted := sortedCaps()
if !strings.HasSuffix(version.Version, "-dev") {
sorted = append(sorted, versionedCaps{version: "v" + version.Version, caps: f})
}
sorted = append(sorted, versionedCaps{version: "edge", caps: f})

mdata := make(map[string]interface{})
Expand Down

0 comments on commit d5b8a61

Please sign in to comment.