-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
src/data/manifest.json is missing from build artifacts #2819
Comments
Hi @fieryprophet, Chiming in while investigating another issue that I think may be related. If I download the zip for the latest SDK version, I see that manifest.json file is present in the archive. There is an issue that's currently surfacing with one of our dependencies latest version and WSL2. If you're able, could you tell me if 3.283.11 is the first version that broke and you can successfully install 3.283.10? |
I'll take a look, but I am also noticing that it's supposed to first attempt to use So I can see why for the vast majority of people they haven't encountered this bug if it the compiled version is part of the artifacts, but it obviously makes the fallback redundant if there is no fallback file included in the artifact. And there's still the issue with the compiled version not being resolved in my case. |
@SamRemis |
Thank you, can you tell me what your install method is? Are you using the artifacts released via the github releases? Using composer? |
Installing via composer 2.6.5 |
I am beginning to think the |
Just to further clarify, Composer is pulling release |
The Steps I took to try to reproduce:
Do you mean that it's just missing |
Correct the json.php file exists but .json does not. Why the fallback if that file is not included in the builds? |
Hi @fieryprophet, I agree that it should not fallback to check if that file exists when it will not exists, however, I think that what may be causing this issue at your end is that the context from where your code is being ran does not have enough permissions to read the compiled file. The reason why I think that is the problem is because if you check the implementation here, you will see that it checks for if that compiled file is able to be read, and if not then is when it fall back to where is failing.
And if it exists then, you may need to check your permissions. I look forward to your response. Thanks! |
@yenfryherrerafeliz Yeah, I resolved my triggering issue by calling the AWS code from within the WSL2 context instead of externally via a UNC path. However I definitely feel the fallback code for this issue needs addressing if the expected |
Hi @fieryprophet, thanks again for reporting this. We have added an item to our backlog so we can revisit this in the future, with the purpose of improving the handling or the message we provide so it can be more clear for when the compiled file can't be read in that function. I will close this issue now but please feel free of opening a new issue for anything you get that we can help you with. Thanks! |
|
Also I apologize for the slow response here; the fallback predates me, so I can't say for sure, but my best guess as to the reason it's there is for ease of development. If you pull/fork the SDK from GitHub, then it will give you both the .json and the .json.php files. If you need to modify one of them, it's much simpler to modify a json file than it is to modify a compressed PHP array. You can just delete the .json.php file, edit the .json file as needed and instantly see the changes reflected in the SDK. |
Describe the bug
src/data/manifest.json
is not being included with the build artifacts which results in the following error on use:File not found: /vendor/aws/aws-sdk-php/src/data/manifest.json {"exception":"[object] (InvalidArgumentException(code: 0): File not found: /vendor/aws/aws-sdk-php/src/data/manifest.json at /vendor/aws/aws-sdk-php/src/functions.php:160)
Expected Behavior
manifest.json
would load properly.Current Behavior
As
manifest.json
is missing the loader fails and the SDK is unusable.Reproduction Steps
Any operation using the SDK from one of the latest build artifacts will result in this error if they fail to resolve the compiled
mainfest.json.php
artifact that is included in the build artifacts.Possible Solution
Include
manifest.json
in the build artifact.Additional Information/Context
No response
SDK version used
3.285.4
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.2 under Windows 11/WSL2
The text was updated successfully, but these errors were encountered: