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

phpPackages.psalm: 6.5.0 -> 6.8.6 #384574

Merged
merged 1 commit into from
Feb 23, 2025
Merged

Conversation

drupol
Copy link
Contributor

@drupol drupol commented Feb 23, 2025

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@piotrkwiecinski
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 384574


x86_64-linux

❌ 1 package failed to build:
  • php81Packages.psalm
✅ 3 packages built:
  • php82Packages.psalm
  • php83Packages.psalm
  • php84Packages.psalm

@piotrkwiecinski
Copy link
Contributor

piotrkwiecinski commented Feb 23, 2025

If I'm not mistaken the error comes from composer itself. PHP 8.1 support requires composer LTS(2.2.X).

@drupol
Copy link
Contributor Author

drupol commented Feb 23, 2025

The embedded composer.lock has been created using PHP 8.2, this is why we can't build PSalm with PHP 8.1.

drupol referenced this pull request in vimeo/psalm Feb 23, 2025
@piotrkwiecinski
Copy link
Contributor

Do we even need multiple versions? Maybe we could just move it to by-name like phpunit?

@drupol
Copy link
Contributor Author

drupol commented Feb 23, 2025

Do we even need multiple versions? Maybe we could just move it to by-name like phpunit?

I would then ask the @NixOS/php team for this decision as it might have a bigger impact.

@piotrkwiecinski
Copy link
Contributor

If not could we at least mark it as broken on 8.1?

@drupol
Copy link
Contributor Author

drupol commented Feb 23, 2025

yes, going to mark it as broken for PHP 8.1.

@drupol
Copy link
Contributor Author

drupol commented Feb 23, 2025

I got the confirmation from @danog (vimeo/psalm@15731ea#r152900744) that building the PHAR with PHP 8.1 is not working due to a bug in Humbug/Box.

Marking it as broken for PHP 8.1 is definitely the way to go then, I don't really want to maintain a custom composer.lock just for PHP 8.1.

@drupol drupol merged commit e068cc2 into NixOS:master Feb 23, 2025
25 of 27 checks passed
@drupol drupol deleted the push-ntvmvysqnvmk branch February 23, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants