Skip to content
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

bump elemental-toolkit to v2 #1969

Merged
merged 4 commits into from
Mar 8, 2024
Merged

Conversation

davidcassany
Copy link
Contributor

@davidcassany davidcassany commented Feb 22, 2024

Fixes #1927

cmd/build-disk.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Feb 22, 2024

Codecov Report

Attention: Patch coverage is 92.89617% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 72.53%. Comparing base (c03dc35) to head (c71a5c8).

Files Patch % Lines
cmd/build-disk.go 0.00% 3 Missing ⚠️
cmd/build-iso.go 57.14% 3 Missing ⚠️
cmd/config/config.go 83.33% 3 Missing ⚠️
pkg/action/upgrade.go 70.00% 3 Missing ⚠️
pkg/snapshotter/btrfs.go 81.25% 3 Missing ⚠️
pkg/action/upgrade-recovery.go 33.33% 2 Missing ⚠️
pkg/elemental/elemental.go 94.11% 2 Missing ⚠️
cmd/init.go 0.00% 1 Missing ⚠️
cmd/upgrade-recovery.go 0.00% 1 Missing ⚠️
pkg/action/mount.go 91.66% 1 Missing ⚠️
... and 4 more
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1969   +/-   ##
=======================================
  Coverage   72.53%   72.53%           
=======================================
  Files          76       76           
  Lines        8909     8909           
=======================================
  Hits         6462     6462           
  Misses       1913     1913           
  Partials      534      534           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

v1 "github.com/rancher/elemental-toolkit/pkg/types/v1"
"github.com/rancher/elemental-toolkit/v2/pkg/constants"
eleError "github.com/rancher/elemental-toolkit/v2/pkg/error"
"github.com/rancher/elemental-toolkit/v2/pkg/types"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@frelon if I understood what you meant you were imagining something like that right? So no v1 or v2, only types which somehow also reflects we are not supporting both on the same code base.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, otherwise we could consider keeping the pkg/types/v1 directory and only making changes in v2, but it feels like overkill to me 👍

@davidcassany davidcassany force-pushed the bump_to_v2 branch 2 times, most recently from f6171e8 to c71a5c8 Compare March 7, 2024 10:59
Signed-off-by: David Cassany <dcassany@suse.com>
This commit leaves the code with a single set of types
and in refers to it as the types packge instead of
v1 or v2.

For the time being we do not foresee managing more
than one single major version of type within the
same code.

Signed-off-by: David Cassany <dcassany@suse.com>
Signed-off-by: David Cassany <dcassany@suse.com>
Signed-off-by: David Cassany <dcassany@suse.com>
@davidcassany davidcassany marked this pull request as ready for review March 7, 2024 14:57
@davidcassany davidcassany enabled auto-merge (rebase) March 8, 2024 08:14
@davidcassany davidcassany merged commit c05f5d4 into rancher:main Mar 8, 2024
17 of 20 checks passed
@davidcassany davidcassany deleted the bump_to_v2 branch March 8, 2024 08:15
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.

Bump elemental-tookit to v2
3 participants