Skip to content

Component URLs#100

Merged
srueg merged 7 commits intomasterfrom
feature/component-urls
May 26, 2020
Merged

Component URLs#100
srueg merged 7 commits intomasterfrom
feature/component-urls

Conversation

@srueg
Copy link
Copy Markdown
Contributor

@srueg srueg commented May 20, 2020

Allow overwriting of component git repo URLs.
The component git repo URLs can be overwritten in a global Commodore
config file. The config file is searched for in the global inventory
repo. The global git base is used as default for non overwritten
components.

Closes #73

@srueg srueg marked this pull request as draft May 20, 2020 12:11
@srueg srueg force-pushed the feature/component-urls branch from 4754e16 to 63b1f29 Compare May 20, 2020 12:15
@srueg srueg marked this pull request as ready for review May 20, 2020 14:51
@srueg srueg requested review from corvus-ch and simu May 20, 2020 14:51
Copy link
Copy Markdown
Member

@simu simu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall change LGTM. Will review in more detail on Friday

@srueg
Copy link
Copy Markdown
Contributor Author

srueg commented May 20, 2020

For some reason the GitHub actions don't run. They're just stuck in Starting your workflow run... state and then go to This check was cancelled

Copy link
Copy Markdown
Member

@simu simu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The namedtuple config.Component can easily be adjusted/extended to handle the separation of Git repository name and URL base separately which is required for having customizable component URLs.

I would like to have a single Component namedtuple in the code base, also to avoid confusion when working on the dependency management or config code.

Comment thread commodore/dependency_mgmt.py Outdated
Comment thread commodore/dependency_mgmt.py
srueg added 5 commits May 25, 2020 11:55
Otherwise the error messages might not be correct.
Check if symlink target exists instead of using an exception.
Log less verbose if in non-verbose mode.
If the `-v/--verbose` flag is provided three or more times tracing
output is printed.
Especially the processing of Kapitan refs polluts the output in debug
mode with lots of messages.
@srueg srueg force-pushed the feature/component-urls branch 2 times, most recently from 7574f25 to be77e91 Compare May 25, 2020 09:59
@srueg srueg requested a review from simu May 25, 2020 09:59
@srueg srueg force-pushed the feature/component-urls branch 2 times, most recently from e9ec13d to 158a2c7 Compare May 25, 2020 11:11
Comment thread commodore/compile.py
Comment thread commodore/compile.py Outdated
Copy link
Copy Markdown
Member

@simu simu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now

Comment thread commodore/compile.py Outdated
Comment thread commodore/dependency_mgmt.py
srueg added 2 commits May 25, 2020 15:07
The component git repo URLs can be overwritten in a global Commodore
config file. The config file is searched for in the global inventory
repo. The global git base is used as default for non overwritten
components.

Closes #73
@srueg srueg force-pushed the feature/component-urls branch from 3d8ccf3 to 3bf352f Compare May 25, 2020 13:07
@srueg srueg requested a review from corvus-ch May 25, 2020 14:24
@srueg srueg merged commit b869ac2 into master May 26, 2020
@srueg srueg deleted the feature/component-urls branch May 26, 2020 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow defining full path to Git repository for components

3 participants