Remove editable: false support (#5987)

## Summary

This doesn't actually work yet. We'll re-add it in the future.

Closes #5958.
This commit is contained in:
Charlie Marsh 2024-08-09 20:59:23 -04:00 committed by GitHub
parent 8eada4077a
commit cd0171a2ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 24 deletions

View file

@ -224,8 +224,6 @@ pub enum Source {
/// When set to `false`, the package will be fetched from the remote index, rather than
/// included as a workspace package.
workspace: bool,
/// `true` by default.
editable: Option<bool>,
},
/// A catch-all variant used to emit precise error messages when deserializing.
CatchAll {
@ -286,10 +284,7 @@ impl Source {
if workspace {
return match source {
RequirementSource::Registry { .. } | RequirementSource::Directory { .. } => {
Ok(Some(Source::Workspace {
editable,
workspace: true,
}))
Ok(Some(Source::Workspace { workspace: true }))
}
RequirementSource::Url { .. } => {
Err(SourceError::WorkspacePackageUrl(name.to_string()))