Skip to content

extensions: remove unused extendee_args() method#41942

Merged
alalazo merged 1 commit intodevelopfrom
remove-unused-extendee-args
Jan 4, 2024
Merged

extensions: remove unused extendee_args() method#41942
alalazo merged 1 commit intodevelopfrom
remove-unused-extendee-args

Conversation

@tgamblin
Copy link
Copy Markdown
Member

@tgamblin tgamblin commented Jan 3, 2024

This method is vestigial; the only arg we ever used was ignore=, and that was eliminated in #29317 and #35588.

The values of the extendees dictionary are completely unused now -- added a note for the next refactor.

@spackbot-app spackbot-app bot added core PR affects Spack core functionality directives tests General test capability(ies) labels Jan 3, 2024
@tgamblin tgamblin requested a review from alalazo January 3, 2024 22:22
This method is vestigial; the only arg we ever used was `ignore=`, and that was
eliminated in #29317 and #35588.

The `kwargs` field of the extensions dictionary is actually completely unused now. Add a
note for future removal.
@tgamblin tgamblin force-pushed the remove-unused-extendee-args branch from d36333f to 7381c57 Compare January 3, 2024 22:27

@directive(("extendees", "dependencies"))
def extends(spec, type=("build", "run"), **kwargs):
def extends(spec, when=None, type=("build", "run"), patches=None):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This LGTM, modulo being sure you have seen #40326 (comment) If it's ok to break the API, considering that the breakage will probably affect a very small number of users, then this one is mergeable.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think the number is close to if not actually zero -- so I'm in inclined to assume that people have been using kwargs as I've never seen anyone not use kwargs for later arguments to directives.

@alalazo alalazo self-assigned this Jan 4, 2024
@alalazo alalazo merged commit c46f3cf into develop Jan 4, 2024
@alalazo alalazo deleted the remove-unused-extendee-args branch January 4, 2024 08:16
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Jan 25, 2024
This method is vestigial; the only arg we ever used was `ignore=`, and that was
eliminated in spack#29317 and spack#35588.

The `kwargs` field of the extensions dictionary is actually completely unused now. Add a
note for future removal.
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Jan 31, 2024
This method is vestigial; the only arg we ever used was `ignore=`, and that was
eliminated in spack#29317 and spack#35588.

The `kwargs` field of the extensions dictionary is actually completely unused now. Add a
note for future removal.
kwryankrattiger pushed a commit to kwryankrattiger/spack that referenced this pull request Jul 9, 2024
This method is vestigial; the only arg we ever used was `ignore=`, and that was
eliminated in spack#29317 and spack#35588.

The `kwargs` field of the extensions dictionary is actually completely unused now. Add a
note for future removal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core PR affects Spack core functionality directives tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants