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

Implement LocalRegistry for testing #23

Merged
merged 7 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mara cr
  • Loading branch information
Robert Fink committed Aug 30, 2023
commit de60b5584d4cb4b8e66eb837cc8a07a6b97485aa
4 changes: 1 addition & 3 deletions src/registry/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ impl Registry for LocalRegistry {
dependency.manifest.repository, dependency.package, dependency.package, version
)));

println!("{:?}", path);

tracing::debug!("downloaded dependency {dependency} from {:?}", path);

let bytes = Bytes::from(std::fs::read(path)?);
Expand Down Expand Up @@ -120,7 +118,7 @@ mod tests {
description: None,
};
let package_bytes = Bytes::from(
fs::read(PathBuf::from("src/registry/test-data/test-api-0.1.0.tgz")).unwrap(),
include_bytes!("../../tests/data/test-api-0.1.0.tgz").to_vec()
);

// Publish to local registry and assert the tgz exists in the file system
Expand Down
3 changes: 0 additions & 3 deletions src/registry/test-data/test-api-0.1.0.tgz
uschi2000 marked this conversation as resolved.
Outdated
Show resolved Hide resolved

This file was deleted.