Commit graph

618 commits

Author SHA1 Message Date
c24fce2ee5 Convert BuildConfigurationValues constants to enum cases 2024-09-14 08:49:53 -04:00
ae21d98290 Minor corrections for illegal array key type 2024-09-14 08:45:42 -04:00
d379956437 Convert ComponentDecodeOptions constants to enum cases 2024-09-14 08:44:06 -04:00
2bd2d757fd Convert InitializeProjectOptions constants to enum cases 2024-09-14 08:43:07 -04:00
87844ab00a Convert InstallPackageOptions constants to enum cases 2024-09-14 08:41:25 -04:00
ec6b368a82 Convert ProjectOptions constants to enum cases 2024-09-14 08:39:05 -04:00
2efa6654e6 Removed RuntimeImportOptions 2024-09-14 08:38:10 -04:00
21c2405a27 Convert AssemblyConstants constants to enum cases 2024-09-14 08:37:53 -04:00
87a8ca24a1 Convert BuildConstants constants to enum cases 2024-09-14 08:35:16 -04:00
492548d81f Convert DateTimeConstants constants to enum cases 2024-09-14 08:34:34 -04:00
9c06378258 Convert InstallConstants constants to enum cases 2024-09-14 08:33:13 -04:00
0d9f3d37a3 Convert RuntimeConstants constants to enum cases 2024-09-14 08:32:13 -04:00
e02f1f56dc Convert AuthenticationType constants to enum cases 2024-09-14 08:30:41 -04:00
12f0ff2ffa Convert BuildOutputType constants to enum cases 2024-09-14 08:28:04 -04:00
e11f95a22a Removed BuiltinRemoteSourceType 2024-09-14 08:26:30 -04:00
fd928ffc99 Convert ComponentDataType constants to enum cases 2024-09-14 08:26:16 -04:00
3db33006b7 Convert ComposerPackageTypes constants to enum cases 2024-09-14 08:24:19 -04:00
b5d35ed20e Convert ComposerStabilityTypes constants to enum cases 2024-09-14 08:23:29 -04:00
a2149cdb66 Removed DependencySourceType 2024-09-14 08:22:40 -04:00
28ff80dd41 Convert HttpRequestType constants to enum cases 2024-09-14 08:22:25 -04:00
86cf7467af Convert ProjectType constants to enum cases 2024-09-14 08:19:50 -04:00
3d44562241 Removed RemoteSourceType 2024-09-14 08:18:34 -04:00
5b24fe267d Convert RepositoryResultType constants to enum cases 2024-09-14 08:17:45 -04:00
14ec2e06b2 Added TODO 2024-09-14 00:41:27 -04:00
71ffed1a3f Convert RepositoryType constants to enum cases 2024-09-14 00:40:59 -04:00
d884d0fbda Convert CompilerExtensions constants to enum cases 2024-09-14 00:39:18 -04:00
baf11f5cb9 Convert ConsoleColors constants to enum cases 2024-09-14 00:37:03 -04:00
e1013f6c15 Convert ExceptionCodes constants to enum cases 2024-09-14 00:34:12 -04:00
718c6ff8d8 Convert FileDescriptor constants to enum cases 2024-09-14 00:31:43 -04:00
5dd98083d6 Convert LogLevel constants to enum cases 2024-09-14 00:30:05 -04:00
d612c67cb0 Convert PackageDirectory constants to enum cases 2024-09-14 00:24:49 -04:00
42473390e8 Removed CompilerExtensionDefaultVersions.php 2024-09-14 00:20:59 -04:00
cfc93aa066 Removed HttpStatusCodes.php 2024-09-14 00:20:46 -04:00
91103c1470 Removed ConstantReferences.php 2024-09-14 00:20:28 -04:00
9885d98b55 Removed PackageStandardVersions.php 2024-09-14 00:20:10 -04:00
321fef4228 Convert PackageStructure constants to enum cases 2024-09-14 00:19:53 -04:00
c687d0394d Convert PackageStructureVersions constants to enum cases 2024-09-14 00:13:43 -04:00
2a16b2de6b Convert ProjectTemplates constants to enum cases 2024-09-14 00:12:55 -04:00
e98b949b7d Convert RegexPatterns constants to enum cases 2024-09-13 13:38:48 -04:00
7e5cdf4d64 Removed EncoderType enum file, unused. 2024-09-13 13:34:40 -04:00
90535a3a35 Updated CHANGELOG.md 2024-09-13 13:31:37 -04:00
69de79ccf4 Convert Runners class to enum with string cases 2024-09-13 13:29:40 -04:00
7c9f63955a Update Scopes to enum and adjust scope checks 2024-09-13 13:26:54 -04:00
1ba50cc7ee Convert Versions constants to enum cases 2024-09-13 13:20:12 -04:00
f9047dd0d0 Bumped version to 2.1.0 2024-09-13 13:12:14 -04:00
a65b76b6bf
Updated CHANGELOG.md 2023-10-25 22:02:26 -04:00
957d9a9510
Added the ability to use 'all' as a build configuration when running ncc build, to build all build configurations
in the project.

The build command in ncc has been updated to accept 'all' as a build configuration which prompts the build of all configurations in the project. Previously, builds had to be triggered for each individual configurations. This change simplifies the build process especially for projects with multiple configurations, making the process more efficient and less prone to human error.
2023-10-25 22:00:37 -04:00
d2635b19fd
Fixed issue when creating a shadow copy of a package, if the universe aligns together and the cosmos unit together to
produce a package length exactly to where the end-of-package byte sequence is cut in half, the shadow copy will fail
   to be created due to the end-of-package byte sequence being cut in half, this issue was fixed by reading the package
   in chunks to determine the end-of-package byte sequence.

The PackageReader class has been updated to use a more efficient buffer management when reading data from a file. Previously, buffer size was growing uncontrollably and can eventually lead to out-of-memory errors for large files.

Now, the data is read in chunks and the buffer is cleared when it exceeds approximately 1MB size, maintaining only the last 512KB. This change ensures a more memory-efficient package reading and effectively prevents erroneous deadlocks for large package files.

Additionally, detection for end-of-data byte sequence has been modified to rectify an issue where package length could cut off the end-of-package byte sequence. This results in an improved reliability for package validation.
2023-10-25 21:40:42 -04:00
76f12bb0a3
Fixed issue where all development dependencies were not correctly being added to debug builds in composer projects,
instead these dependencies were added globally to the build configuration. This issue was fixed by adding all the
   development dependencies to the debug build configurations only.

This commit revises the handling of composer dependencies in 'ProjectManager.php'. A problem was encountered where software development dependencies were added globally to the build configuration, rather than exclusively to debug builds. By reassigning these dependencies to the debug configuration, this issue has been remedied.

Additionally, a bug-fix in 'PackageReader.php' has been implemented to validate the package file by checking the data length. If the file is discovered to be invalid (data length is null or zero), an IOException is triggered.

These changes enhance the accuracy of dependency management and improve the robustness of package validation.
2023-10-25 17:57:51 -04:00
7befd995e7
Added host resolving in network calls to improve the handling of invalid or unreachable URLs
The 'Resolver' utility was utilized to resolve the host and cache the result, enhancing the robustness and efficiency of the network calling mechanism across different modules including PackageManager, GiteaRepository, GithubRepository, and others.
2023-10-25 15:08:58 -04:00