Compare commits

..

No commits in common. "master" and "2.1.4" have entirely different histories.

7 changed files with 30 additions and 46 deletions

1
.gitignore vendored
View file

@ -31,4 +31,3 @@ tests/example_project/ncc
tests/example_project/build
/.phpunit.result.cache
/.idea/php-test-framework.xml
/.idea/gbrowser_project.xml

View file

@ -5,21 +5,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.1.6] - 2024-10-29
This update introduces critical bug fixes
### Fixed
- Validate package instance before checking execution policy
## [2.1.5] - 2024-10-14
This update introduces a critical bug fix
## [2.1.4] - 2024-10-13
This update introduces minor bug fixes & improvements

View file

@ -40,7 +40,7 @@
- name: Build project
run: |
ncc build --config %TPL_BUILD_NAME% --build-source --log-level debug
ncc build --config %TPL_BUILD_NAME% --log-level debug
- name: Upload build artifact
uses: actions/upload-artifact@v4

View file

@ -94,14 +94,14 @@
throw new InvalidArgumentException(sprintf('Package %s is not imported', $package));
}
if(self::$imported_packages[$package] instanceof PackageReader)
{
if(self::$imported_packages[$package]?->getMetadata()?->getMainExecutionPolicy() === null)
{
Console::out('The package does not have a main execution policy, skipping execution');
return 0;
}
if(self::$imported_packages[$package] instanceof PackageReader)
{
return ExecutionUnitRunner::executeFromPackage(
self::$imported_packages[$package],
self::$imported_packages[$package]->getMetadata()->getMainExecutionPolicy()

View file

@ -1 +1 @@
2.1.6
2.1.4

View file

@ -1,5 +1,5 @@
{
"version": "2.1.6",
"version": "2.1.4",
"branch": "stable",
"flags": [],
"components": [