diff --git a/bin/update-glean-parser-version.sh b/bin/update-glean-parser-version.sh index 846dd6409..654d4e101 100755 --- a/bin/update-glean-parser-version.sh +++ b/bin/update-glean-parser-version.sh @@ -59,6 +59,13 @@ run rm "${WORKSPACE_ROOT}/${FILE}.bak" # update the version in glean-core/csharp/Glean/GleanParser.cs FILE=glean-core/csharp/Glean/GleanParser.cs run $SED -i.bak -E \ - -e "s/GleanParserVersion = \"[0-9.]+\"/GLEAN_PARSER_VERSION = \"${NEW_VERSION}\"/" \ + -e "s/GleanParserVersion = \"[0-9.]+\"/GleanParserVersion = \"${NEW_VERSION}\"/" \ + "${WORKSPACE_ROOT}/${FILE}" +run rm "${WORKSPACE_ROOT}/${FILE}.bak" + +# update the version in glean-core/Cargo.toml +FILE=glean-core/Cargo.toml +run $SED -i.bak -E \ + -e "s/glean-parser = \"[0-9.]+\"/glean-parser = \"${NEW_VERSION}\"/" \ "${WORKSPACE_ROOT}/${FILE}" run rm "${WORKSPACE_ROOT}/${FILE}.bak" diff --git a/glean-core/Cargo.toml b/glean-core/Cargo.toml index 504450ed8..4a811ac14 100644 --- a/glean-core/Cargo.toml +++ b/glean-core/Cargo.toml @@ -17,6 +17,9 @@ include = [ "/Cargo.toml" ] +[package.metadata.glean] +glean-parser = "1.28.3" + [badges] circle-ci = { repository = "mozilla/glean", branch = "main" } maintenance = { status = "actively-developed" }