Browse Source

Merge pull request #13071 from emqx/0518-bump-app-vsn

chore: bump emqx_auth_http app vsn
Zaiming (Stone) Shi 1 year ago
parent
commit
7880353224
2 changed files with 26 additions and 3 deletions
  1. 1 1
      apps/emqx_auth_http/src/emqx_auth_http.app.src
  2. 25 2
      scripts/apps-version-check.sh

+ 1 - 1
apps/emqx_auth_http/src/emqx_auth_http.app.src

@@ -1,7 +1,7 @@
 %% -*- mode: erlang -*-
 {application, emqx_auth_http, [
     {description, "EMQX External HTTP API Authentication and Authorization"},
-    {vsn, "0.2.0"},
+    {vsn, "0.2.1"},
     {registered, []},
     {mod, {emqx_auth_http_app, []}},
     {applications, [

+ 25 - 2
scripts/apps-version-check.sh

@@ -23,6 +23,27 @@ parse_semver() {
     echo "$1" | tr '.|-' ' '
 }
 
+is_allowed_non_strict() {
+    local src_file="$1"
+    local from="$2"
+    local to="$3"
+    case "$(basename "${src_file}" '.app.src')" in
+        emqx_auth_http)
+            case "${from}-${to}" in
+                '0.1.4-0.2.1')
+                    return 0
+                    ;;
+                *)
+                    return 1
+                    ;;
+            esac
+            ;;
+        *)
+            return 1
+            ;;
+    esac
+}
+
 APPS="$(./scripts/find-apps.sh)"
 for app in ${APPS}; do
     if [ "$app" != "emqx" ]; then
@@ -70,8 +91,10 @@ for app in ${APPS}; do
              [ "${now_app_version_semver[2]}" = "0" ]; then
             true
         else
-            echo "$src_file: non-strict semver version bump from $old_app_version to $now_app_version"
-            bad_app_count=$(( bad_app_count + 1))
+            if ! is_allowed_non_strict "$src_file" "$old_app_version" "$now_app_version"; then
+                echo "$src_file: non-strict semver version bump from $old_app_version to $now_app_version"
+                bad_app_count=$(( bad_app_count + 1))
+            fi
         fi
     fi
 done