-
Notifications
You must be signed in to change notification settings - Fork 71
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
Extend the compatibility-with-leapp-repository.html #779
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -10,9 +10,10 @@ when we agree it's worthwhile. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
But we need a mechanism to be able to synchronize with other projects, when we | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
provide new functionality in the upstream (master) branch without the need | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
of immadiate release of the new version of leapp. For these purposes the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
of immediate release of the new version of leapp. For these purposes the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
`leapp-framework` capability is provided in the framework (python[23]-leapp) rpms. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
## When and how change the capability | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The `leapp-framework` capability has to be changed in case of any change of | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -57,3 +58,18 @@ on the system, you could end up with: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
which both are broken for leapp repository and the dependency from the point of | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rpms is satisfied. This should happen rarely. We suggest you to ensure that you | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
use such repositories where only one of those rpms exists. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
# Leapp developer's point of view | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Some big and cool feature requests expect changes to land in both leapp and leapp-repository projects simultaneously. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
To instruct how to pick up the proper version, you need to make changes to the spec files that reside in the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
`packaging` directory of both projects. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
For example, let's say that [packaging/leapp.spec](../../packaging/leapp.spec#L16) has `framework_version 42.42` and | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
the cool change you are working on is breaking previous functionality. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* In a leapp PR you would need to bump the version in the spec file to `framework_version 43.0`. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* In a leapp-repository PR you would then need to address the expected version by adjusting the Requires directive, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
like `Requires: leapp-framework >= 43.0, leapp-framework < 44` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+65
to
+75
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. Let's rather make it general. It does not matter whether someone is working on a functionality that needs to be addressed in both projects in the same time or whether we speak just about generic case: I want to provide new feature in leapp; I want to start to use a feature in official leapp repositories.
Suggested change
@fernflower: i cannot use triple backticks in the suggestion :/, so replace simple backticks when speking about "lines" by triple backticks instead. 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. TBH I'd like to keep it simple and goal oriented - we already have a generic description above that doesn't really help to find an immediate answer to "How do I specify the cross-dependent versions asap" :( I would like to keep this paragraph only for cases when leapp developer actually needs to become aware of the need to bump framework version. 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. 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. @fernflower let's put it somewhere so we discuss it the next week, to have it resolved. it's not cabal topic, but possibly we could use that mtg when nobody is answering. wdyt? or we could sync first to discover whether we find a better solution alone :) |
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.
what about something like:
My point is to explain we provide an example / story to people in this section that covers the stuff above.