Skip to content

Instantly share code, notes, and snippets.

@drupol
Last active January 13, 2025 14:11
Show Gist options
  • Save drupol/002efef91422afa37ca7b05aa48f5e0c to your computer and use it in GitHub Desktop.
Save drupol/002efef91422afa37ca7b05aa48f5e0c to your computer and use it in GitHub Desktop.
phpdocumentor-repro-issue.sh
#!/usr/bin/env bash
# Dependencies:
#
# 1. Create a nix shell with: `nix shell nixpkgs#phpPackages.composer nixpkgs#gitMinimal nixpkgs#diffoscopeMinimal`
# 2. Run this script
composer --version
if [[ ! -d "phpdocumentor" ]]; then
git clone https://github.com/phpdocumentor/phpdocumentor
fi
pushd phpdocumentor
git checkout v3.6.0
rm -rf vendor vendor0 vendor1
composer --no-cache --quiet install
mv vendor vendor0
composer --no-cache --quiet install
mv vendor vendor1
diffoscope --exclude-directory-metadata recursive vendor0 vendor1
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment