Skip to content

Conversation

@UebelAndre
Copy link
Contributor

closes #85

@UebelAndre
Copy link
Contributor Author

If this change is merged then a new release should be cut.

=cut

sub create {
my ($class) = @_;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This may not apply here, but do you want to guard against 'create' being called on a blessed instance with:

    my $package = shift;
    my $class = ref($package) || $package;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean "blessed instance"? I'm happy to apply any changes though.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I've seen this happen before:

my $r = Runfiles->create();
my $r2 = $r->create(); // current implementation wouldn't support this bad use case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated!

@skeletonkey skeletonkey merged commit 641362b into bazel-contrib:main Nov 1, 2025
1 check passed
@UebelAndre UebelAndre deleted the runfiles branch November 1, 2025 21:12
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.

Feature Request: Implement Runfiles API in Perl

2 participants