Skip to content

Add gitattributes, skip bundling build artifacts in released package - #62

Merged
Ocramius merged 1 commit into
webmozarts:4.7.xfrom
VincentLanglet:addGitAttributes
Mar 7, 2024
Merged

Add gitattributes, skip bundling build artifacts in released package #62
Ocramius merged 1 commit into
webmozarts:4.7.xfrom
VincentLanglet:addGitAttributes

Conversation

@VincentLanglet

Copy link
Copy Markdown
Contributor

Hi,

Seems like this project is missing .gitattributes file so I tried to add one.

@Ocramius Ocramius left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @VincentLanglet!

@Ocramius Ocramius self-assigned this Mar 7, 2024
@Ocramius Ocramius added this to the 4.7.0 milestone Mar 7, 2024
@Ocramius
Ocramius merged commit 8a28421 into webmozarts:4.7.x Mar 7, 2024
@Ocramius Ocramius changed the title Add gitattributes Add gitattributes, skip bundling build artifacts in released package Mar 7, 2024
@dmitryuk

dmitryuk commented Aug 5, 2026

Copy link
Copy Markdown

@VincentLanglet do you remember why composer.lock file has not been ignored same way?

Our CVE tool Trivy scan all composer.lock files in vendor directory and found a lot of issues

@VincentLanglet

Copy link
Copy Markdown
Contributor Author

I would say first that the CVE tool is wrong to scan the composer.lock in the vendor folder since it's not used when you install a library.

Also I often add the lock file in the gitignore file rather than just the gitattributes ; but you can still provide a pr to add it in the gitattributes if you want to

@Ocramius

Ocramius commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

From a library PoV, working with unlocked dependencies has proven to be a long-term disaster, especially since libraries like Symfony straight out lie about supported dependency ranges 😱

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.

3 participants