-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add Package Parameter to Init #254
Add Package Parameter to Init #254
Conversation
Tested Scenarios: velocitas init -p devenv-github-workflows@v5.0.0 velocitas init -p https://github.com/eclipse-velocitas/devenv-github-workflows.git@v5.0.0 Use Cases: 'velocitas init -p devenv-runtimes@v3.0.0'
'velocitas init -p devenv-runtimes'
'velocitas init'
Edge Cases:
e.g.: init -p packageB Did not test:
|
It is now possible to initialize a standard package using `velocitas init -p devenv-runtimes`. This command will depending on if the devenv-runtimes package is defined in .velocitas.json use the version specified in .velocitas.json or use the latest version if not specified in .velocitas.json. Using a custom version: `velocitas init -p devenv-runtimes@v3.0.0`. Using a custom package: `velocitas init -p https://github.com/SoftwareDefinedVehicle/devenv-runtimes.git@v3.0.0` If initializing a package which is not part of .velocitas.json it will automatically be added to it. If a package specifies components but no component is referenced in .velocitas.json, all components will be added automatically during initialization.
Changed the @ version annotation of repos to a separate parameter. This is necessary due to some clashes which we have when providing a repo using ssh git urls. ssh git repo urls may contain look like the folllwing: {user}:{password}@github.com/eclipse-velocitas/repo.git However this paired with the previous version annotation {repo_url}@v1.2.3 and the fact that both credentials and version can optionally be provided makes reliably parsing the version out of the url pretty hard. If no specifier parameter is used, it will always retrieve the latest version.
d07bb6d
to
59665b8
Compare
02fef36
to
24b0b0a
Compare
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.
lgtm
It is now possible to initialize a standard package using
velocitas init -p devenv-runtimes
. This command will depending on if the devenv-runtimes package is defined in .velocitas.json use the version specified in .velocitas.json or use the latest version if not specified in .velocitas.json.Using a custom version:
velocitas init -p devenv-runtimes@v3.0.0
.Using a custom package:
velocitas init -p https://github.com/SoftwareDefinedVehicle/devenv-runtimes.git@v3.0.0
If initializing a package which is not part of .velocitas.json it will automatically be added to it. If a package specifies components but no component is referenced in .velocitas.json, all components will be added automatically during initialization.