Skip to content

Commit

Permalink
maybe fix... i cannot compile this repo on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Dec 14, 2024
1 parent ba9693b commit 2882d10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/src/npm/tarball.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ mod tests {
) -> Result<(), anyhow::Error> {
let scope = spec.jsr_json.name.scope.clone();
let package = spec.jsr_json.name.package.clone();
let version = spec.jsr_json.version.clone();
let version = spec.jsr_json.version.clone().unwrap();

let exports = match exports_map_from_json(spec.jsr_json.exports.clone()) {
Ok(exports) => exports,
Expand Down
2 changes: 1 addition & 1 deletion api/src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ pub mod tests {
.unwrap();
let deno_json: ConfigFile = serde_json::from_slice(&json).unwrap();
assert_eq!(deno_json.name.to_string(), "@scope/foo");
assert_eq!(deno_json.version.to_string(), "1.2.3");
assert_eq!(deno_json.version.unwrap().to_string(), "1.2.3");
{
let metadata_json = t
.buckets
Expand Down
2 changes: 1 addition & 1 deletion api/src/tarball.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ pub async fn process_tarball(
if config_file_version != publishing_task.package_version {
return Err(PublishError::ConfigFileVersionMismatch {
path: Box::new(publishing_task.config_file.clone()),
deno_json_version: Box::new(config_file.version),
deno_json_version: Box::new(config_file_version),
publish_task_version: Box::new(publishing_task.package_version.clone()),
});
}
Expand Down

0 comments on commit 2882d10

Please sign in to comment.