mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-18 03:13:48 +00:00
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:
parent
8eada4077a
commit
cd0171a2ed
6 changed files with 8 additions and 24 deletions
|
|
@ -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()))
|
||||
|
|
|
|||
|
|
@ -1555,8 +1555,7 @@ mod tests {
|
|||
},
|
||||
"sources": {
|
||||
"bird-feeder": {
|
||||
"workspace": true,
|
||||
"editable": null
|
||||
"workspace": true
|
||||
}
|
||||
},
|
||||
"pyproject_toml": {
|
||||
|
|
@ -1569,8 +1568,7 @@ mod tests {
|
|||
"uv": {
|
||||
"sources": {
|
||||
"bird-feeder": {
|
||||
"workspace": true,
|
||||
"editable": null
|
||||
"workspace": true
|
||||
}
|
||||
},
|
||||
"workspace": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue