-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: viur build release
now sticks to versions defined in project.json
#191
Open
Grashalmbeisser
wants to merge
7
commits into
viur-framework:main
Choose a base branch
from
Grashalmbeisser:bugfix/build_release
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7736615
added smaller bugfixes for version <3.13 package.py logging errors
Grashalmbeisser a891c23
removed newline
Grashalmbeisser 461a83b
merge
Grashalmbeisser b417854
build now combines version and command if command does not contain ve…
Grashalmbeisser 637f22e
Merge branch 'viur-framework:main' into bugfix/build_release
Grashalmbeisser bec52c0
Merge branch 'viur-framework:main' into bugfix/build_release
Grashalmbeisser 54752f0
command and version with regex
Grashalmbeisser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
from pathlib import Path | ||
from urllib.request import urlretrieve | ||
from . import cli, echo_error, echo_info | ||
from operator import itemgetter | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ??? |
||
|
||
REPOS = { | ||
"vi": ("viur-framework/viur-vi", "viur-vi.zip"), | ||
|
@@ -144,11 +145,6 @@ def scriptor(version, target, profile): | |
|
||
old_version=conf.get('builds').get('scriptor').get('version') | ||
|
||
if old_version == real_version.strip("v"): | ||
if not click.confirm(f"You have already installed version {old_version} of scriptor.\n" | ||
f"Do you want to continue and install it again?"): | ||
return | ||
|
||
scriptor_path = Path(dist_folder, target) | ||
tmp_zip_file = Path("scriptor.zip") | ||
|
||
|
@@ -187,11 +183,6 @@ def admin(version: str, target: str, profile): | |
|
||
old_version=conf.get('builds').get('admin').get('version') | ||
|
||
if old_version == real_version.strip("v"): | ||
if not click.confirm(f"You have already installed the version {old_version} of admin.\n" | ||
f"Do you want to continue and install it again?"): | ||
return | ||
|
||
admin_path = Path(dist_folder, target) | ||
tmp_zip_file = Path("vi-admin.zip") | ||
|
||
|
@@ -235,11 +226,6 @@ def vi(version, target, profile): | |
real_version, download_url = get_version_info("vi", version) | ||
old_version = conf.get('builds').get('vi').get('version') | ||
|
||
if old_version == real_version.strip("v"): | ||
if not click.confirm(f"You have already installed the version {old_version} of vi.\n" | ||
f"Do you want to continue and install it again?"): | ||
return | ||
|
||
vi_path = Path(dist_folder, target) | ||
tmp_zip_file = Path("vi.zip") | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any "exec"-build command with a "." in its command string is now assumed to be a version number? And what if
build_cfg["version"]
does not exist?In one of my projects, I have this definition, which immediately triggers this code-path as it contains a ".", an will fail as there is no "version" key:
Please rethink this part entirely. use a regular expression to determine if this is an admin install-command like
viur package install admin
with a valid version number behind. You can extract the version number using regular expression as well.