Skip to content

Commit

Permalink
Hoist imports and remove versioning in FilesystemPackageSupplier
Browse files Browse the repository at this point in the history
Hoisting imports to have them all in the same place.
Also remove a version statement, as the client code should not
care if vibe-d is being used and just import the internal module.
  • Loading branch information
Geod24 committed Feb 15, 2024
1 parent a251a99 commit e1ad1a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/dub/packagesuppliers/filesystem.d
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
module dub.packagesuppliers.filesystem;

import dub.internal.logging;
import dub.internal.vibecompat.inet.path;
import dub.packagesuppliers.packagesupplier;

import std.exception : enforce;

/**
File system based package supplier.
This package supplier searches a certain directory for files with names of
the form "[package name]-[version].zip".
*/
class FileSystemPackageSupplier : PackageSupplier {
import dub.internal.logging;

version (Have_vibe_core) import dub.internal.vibecompat.inet.path : toNativeString;
import std.exception : enforce;
private {
NativePath m_path;
}
Expand Down

0 comments on commit e1ad1a9

Please sign in to comment.