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

Make GroupKey cloneable #3738

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Make GroupKey cloneable #3738

merged 1 commit into from
Mar 10, 2023

Conversation

bentsherman
Copy link
Member

See discussions in #3104 and #2660

When modifying maps, it is generally better to copy the map, e.g. metadata + [id: 'foo']. However, if the map contains a GroupKey, it won't work. This PR simply makes GroupKey cloneable so that you don't have to remove and re-add the group key to clone a map.

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@pditommaso
Copy link
Member

Fair enough

@pditommaso pditommaso merged commit 0760b0f into master Mar 10, 2023
@pditommaso pditommaso deleted the 3104-groupkey-cloneable branch March 10, 2023 22:56
abhi18av pushed a commit to abhi18av/nextflow that referenced this pull request Oct 28, 2023
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants