<p dir="auto">Lots of new developers see this during configuration (e.g. rails db:migrate) and then spend time trying to fix them, by figuring out what packages are missing (or just worrying that something is wrong). So let's silence the warnings entirely in the development environment.</p>
<p dir="auto">An alterative would be to expand the installation instructions to add all the additional packages, but this just makes the (already lengthy) installation process take more time, for little gain.</p>
<p dir="auto">I was surprised to find this topic mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1717953399" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4038" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4038/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4038">#4038</a> since it's been so long since I've seen the warnings. But then I found that I've created this file (and locally ignored it using .git/info/excludes) many years ago. So I think it's reasonable to have the same approach happen out-of-the-box for new developers.</p>
<p dir="auto">The main argument against doing this is that it's less noticeable the the packages are missing if you want to set up a fully-optimised production environment. But in this case, I'd rather optimise for a smoother first-time-developer experience.</p>
<p dir="auto">Refs <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="309230645" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1795" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/1795/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/1795">#1795</a> where we disabled the warnings in the test environment.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4055'>https://github.com/openstreetmap/openstreetmap-website/pull/4055</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4055/commits/41ee371b3e3f734c63bc359ec6d6f0430dc4503d" class="commit-link">41ee371</a> Silence image_optim warnings in development</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4055/files">1 file</a>)</p>
<ul>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4055/files#diff-b146930d41f5c71fc3f47c093d61f92beed7d2f205b75e9912e6f76820c144d6">config/image_optim/development.yml</a>
(12)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4055.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4055.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4055.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4055.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4055">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPFSCAASST5DO4ZGQ3XI5ZAFANCNFSM6AAAAAAYVXUQ7M">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMBOHLGLMK7GMHCJKTXI5ZAFA5CNFSM6AAAAAAYVXUQ7OWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHGOZBLUA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4055</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4055",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4055",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>