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

utopia-swagger-ui tainted by MPL-2 #834

Open
neoeinstein opened this issue Jan 8, 2024 · 4 comments
Open

utopia-swagger-ui tainted by MPL-2 #834

neoeinstein opened this issue Jan 8, 2024 · 4 comments

Comments

@neoeinstein
Copy link

Hello, I wanted to raise a note that this crate currently has a transitive dependency on option-ext. That library is MPL-2, a copyleft license. The option-ext dependency is brought in via rust-embed > shellexpand > dirs. The maintainer of dirs has explicitly stated that they added a dependency on option-ext for the express purpose of tainting the use of dirs with MPL-2, which thus taints any use of utopia-swagger-ui. I have filed a ticket with shellexpand to recommend using an alternate dependency such as etcetera, which does not suffer from this tainting issue, and an issue with rust-embed so that they can depend on a non tainted version when available.

@juhaku
Copy link
Owner

juhaku commented Jan 8, 2024

Oh snap, good for noticing, I'll hope that it will get fixed in the upstream. Otherwise there is a need to find some sort of alternatives for the support of Swagger UI.

@juhaku
Copy link
Owner

juhaku commented Jan 9, 2024

Though master has a version which does not rely on interpolate-folder-path feature flag any more thus there will not be shellexpand dependency either in the tree. I guess this makes this resolved.

@juhaku
Copy link
Owner

juhaku commented Jan 9, 2024

This solves the issue #828.

@neoeinstein
Copy link
Author

Wonderful! Glad to hear that removes the transitive dependency.

the-kenny added a commit to the-kenny/pgrx that referenced this issue Jan 24, 2024
The 'dirs' crate recently started depending on the 'options-ext' crate
which uses copyleft license (MPL). This (unnecessary) dependency causes
licensing issues for various users by possibly poisoning the dependency
tree of their projects[1].

This change replaces the 'dirs' crate with 'home'. The 'home' crate is
maintained by the cargo team and offers the same functionality.

As a bonus, this change also results in a slightly smaller dependency
tree.

[1]:
- artichoke/artichoke#2564
- pyrossh/rust-embed#231
- juhaku/utoipa#834
- harryfei/which-rs#78
the-kenny added a commit to the-kenny/pgrx that referenced this issue Jan 24, 2024
The `dirs` crate recently started depending on the `options-ext` crate
which uses copyleft license (MPL). This (unnecessary) dependency causes
licensing issues for various users by possibly poisoning the dependency
tree of their projects[1].

This change replaces the `dirs` crate with `home`. The `home` crate is
maintained by the cargo team and offers the same functionality.

As a bonus, this change also results in a slightly smaller dependency
tree.

[1]:
- artichoke/artichoke#2564
- pyrossh/rust-embed#231
- juhaku/utoipa#834
- harryfei/which-rs#78
the-kenny added a commit to the-kenny/pgrx that referenced this issue Apr 20, 2024
The `dirs` crate recently started depending on the `options-ext` crate
which uses copyleft license (MPL). This (unnecessary) dependency causes
licensing issues for various users by possibly poisoning the dependency
tree of their projects[1].

This change replaces the `dirs` crate with `home`. The `home` crate is
maintained by the cargo team and offers the same functionality.

As a bonus, this change also results in a slightly smaller dependency
tree.

[1]:
- artichoke/artichoke#2564
- pyrossh/rust-embed#231
- juhaku/utoipa#834
- harryfei/which-rs#78
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

No branches or pull requests

2 participants