Skip to content

Commit

Permalink
fix: allow format 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
akelch committed Apr 18, 2023
1 parent b8942a2 commit 76b4fc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This file documents any relevant changes.

## [1.0.3] 2023-04-18
-fix: allow format 1.1.1

## [1.0.2] 2023-04-17
-fix: update project.json to format 1.1.1

Expand Down
3 changes: 2 additions & 1 deletion src/viur_cli/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def add_npm_apps():
def update_config(path=None):
assert projectConfig, "load_config() must be called first!"

assert projectConfig["default"]["format"] in ["1.0.0", "1.0.1", "1.1.0"], "Invalid formatversion, you have to fix it manually"
assert projectConfig["default"]["format"] in ["1.0.0", "1.0.1", "1.1.0", "1.1.1"], "Invalid formatversion, you have to fix it manually"

if "format" not in projectConfig["default"]:
projectConfig["default"]["format"] = "1.0.1"
Expand Down Expand Up @@ -296,6 +296,7 @@ def update_config(path=None):
if builds[k]["kind"] == "script":
builds[k]["kind"] = "exec"
projectConfig["default"]["builds"] = builds

# conf updates must increase format version
write_config(projectConfig, path)

Expand Down
2 changes: 1 addition & 1 deletion src/viur_cli/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.2"
__version__ = "1.0.3"

0 comments on commit 76b4fc9

Please sign in to comment.