PackageLock Bugs #41
Labels
No labels
Bug
Cannot Resolve
Completed
Enhancement
Important
Question
Resolved
Security Issue
Suggestion
Todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Nosial/ncc#41
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There are several bugs with the PackageLock system where the runtime fails to import some packages correctly, for instance here is part of a var_dump result of a broken PackageEntry object
Issue 1
Location in the second object (or second iteration) points to a incorrect location, rather than the actual package path.
Issue 2
The update source is not implemented correctly.
assigned to @netkas
changed the description
mentioned in commit
1b5991425d
On
\ncc\Objects\PackageLock > PackageEntry > addVersion()
$version->Location = $install_path;
This is the only instance where the Location property of a
VersionEntry
object is set.addVersion()
is called and one of the calls passes on$install_path
as "1
"Usage report of
\ncc\Objects\PackageLock > PackageEntry > addVersion()
Method
addVersion
On
\ncc\Objects > PackageLock > addPackage()
$this->Packages[$package->Assembly->Package]->addVersion($package, true);
The argument #1 is passed on as "true" which results in the value "1" to be entered.
Update the problematic code to
$this->Packages[$package->Assembly->Package]->addVersion($package, $install_path, true);
This change seems to have fixed the issue.