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

Trivial: Make PackageManager.load non-const #2776

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions source/dub/packagemanager.d
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class PackageManager {
*/
protected Package load(NativePath path, NativePath recipe = NativePath.init,
Package parent = null, string version_ = null,
StrictMode mode = StrictMode.Ignore) const
StrictMode mode = StrictMode.Ignore)
{
if (recipe.empty)
recipe = Package.findPackageFile(path);
Expand Down Expand Up @@ -1023,7 +1023,7 @@ symlink_exit:

/// Adds the package and scans for sub-packages.
private void addPackages(ref Package[] dst_repos, Package pack)
const {
{
// Add the main package.
dst_repos ~= pack;

Expand Down
2 changes: 1 addition & 1 deletion source/dub/test/base.d
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ package class TestPackageManager : PackageManager
*/
protected override Package load(NativePath path, NativePath recipe = NativePath.init,
Package parent = null, string version_ = null,
StrictMode mode = StrictMode.Ignore) const
StrictMode mode = StrictMode.Ignore)
{
assert(0, "`TestPackageManager.load` is not implemented");
}
Expand Down
Loading