]> granicus.if.org Git - graphviz/commitdiff
CI: avoid BOM in GRAPHVIZ_VERSION file in windows build jobs
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 7 Oct 2021 18:19:02 +0000 (20:19 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 9 Oct 2021 07:36:37 +0000 (09:36 +0200)
Towards https://gitlab.com/graphviz/graphviz/-/issues/2133.

.gitlab-ci.yml

index 10971ea46bb21afe337825bbe601da93645a03ae..43424f742707d4bf1eed6b35ff23d9fcf12638d8 100644 (file)
@@ -152,7 +152,8 @@ portable-source:
         - echo "$CI_JOB_NAME-warnings $warnings_count" > metrics.txt
         - rm $logfile
         - cat metrics.txt
-        - python gen_version.py > GRAPHVIZ_VERSION
+        # avoid BOM in GRAPHVIZ_VERSION file
+        - python gen_version.py | Out-File GRAPHVIZ_VERSION -Encoding ascii
         - python gen_version.py --collection > COLLECTION
         # Package
         - $Env:GV_VERSION=$( cat GRAPHVIZ_VERSION )