Skip to content

Conversation

@ellemouton
Copy link
Member

@ellemouton ellemouton commented Feb 9, 2025

A pure refactor/code-move PR to move any helper functions and types from the sessions
package to the new macaroons package. This is to help avoid import cycles later on when
the session package starts to import from the accounts package (for when a session links to an
account) which also makes use of these macaroon helpers/types.

Part of #966

... and out of the `sessions` directory. This is to avoid import cycles
when we start explicitly linking accounts to sessions.
Move this helper to the new macaroons package.
In this commit, we refactor various uses of the session.MacaroonRecipe
type outside of the session package. This is to decouple the baking of a
super macaroon from the sessions package and will help avoid import
cycles in future.
@ellemouton ellemouton added no-changelog This PR is does not require a release notes entry sql-ize labels Feb 9, 2025
@ellemouton ellemouton self-assigned this Feb 9, 2025
@ellemouton ellemouton changed the title [s1l-10] sessions: decouple super macaroon helpers from sessions package [sql-10] sessions: decouple super macaroon helpers from sessions package Feb 9, 2025
Move the MacaroonBaker type to the new macaroons package to avoid import
cycles in future.
Copy link
Contributor

@ViktorT-11 ViktorT-11 left a comment

Choose a reason for hiding this comment

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

uTACK LGTM 🚀🔥!

Copy link
Member

@jamaljsr jamaljsr left a comment

Choose a reason for hiding this comment

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

tACK LGTM 💪

Tested the build, unit tests, and running litd. All good

@ellemouton ellemouton merged commit c0e85e0 into lightninglabs:master Feb 11, 2025
17 checks passed
@ellemouton ellemouton deleted the sql10Sessions2 branch February 11, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR is does not require a release notes entry sql-ize

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants