<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:17:57 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-3410] Fix homebrew formula for --HEAD</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3410</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Installing libmongoc latest (passing &lt;tt&gt;--HEAD&lt;/tt&gt;) from homebrew results in an installation where the reported version is 0.0.0.&lt;/p&gt;

&lt;p&gt;Not being able to calculate a build version should be an error in cmake (unless explicitly passing &lt;tt&gt;-DBUILD_VERSION&lt;/tt&gt;). Perhaps something is going awry with &lt;tt&gt;calc_release_version.py&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="978240">CDRIVER-3410</key>
            <summary>Fix homebrew formula for --HEAD</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Oct 2019 14:28:34 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:03 +0000</updated>
                            <resolved>Mon, 9 Dec 2019 16:24:12 +0000</resolved>
                                                    <fixVersion>1.16.0</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2592246" author="kevin.albertson" created="Sun, 8 Dec 2019 18:53:30 +0000"  >&lt;p&gt;After investigating, calc_release_version.py computes a version 0.0.0 because of how homebrew clones the repo when building. This is &lt;b&gt;not&lt;/b&gt; an issue for installing the latest release through homebrew, as that fetches our released source which contains a VERSION_CURRENT file.&lt;/p&gt;

&lt;p&gt;Homebrew by default does a shallow clone of depth 1 of the latest commit. This can be turned off by passing &lt;tt&gt;:shallow =&amp;gt; false&lt;/tt&gt;, but this does not resolve the issue. Even if doing a deep clone, homebrew only copies the git refs heads/master and origin/master (&lt;a href=&quot;https://github.com/Homebrew/brew/blob/b62758a763ac58a2e50ac802f0b8cc15926cbfa3/Library/Homebrew/download_strategy.rb#L697&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;see here&lt;/a&gt;) instead of the git clone default heads/* and origin/*.&lt;/p&gt;

&lt;p&gt;I submitted a PR to specify the development version using &lt;tt&gt;&amp;#45;DBUILD_VERSION&lt;/tt&gt; if installing from &lt;tt&gt;&amp;#45;&amp;#45;HEAD&lt;/tt&gt;. An alternative solution, though more complicated, may be to &lt;a href=&quot;https://docs.brew.sh/Formula-Cookbook#specifying-the-download-strategy-explicitly&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;create a custom download strategy&lt;/a&gt; to clone the git history and refs. It&apos;s also worth noting, that since homebrew caches the cloned source, the computed VERSION_CURRENT seems to persist in the cache (for me, that directory is  &lt;tt&gt;/Users/kevinalbertson/Library/Caches/Homebrew/mongo-c-driver--git&lt;/tt&gt;). So if we were to apply this alternative fix, we&apos;d need to keep in mind that users who may have already attempted installing could still get 0.0.0 from the cached VERSION_CURRENT file unless they first clear the cache.&lt;/p&gt;</comment>
                            <comment id="2592242" author="kevin.albertson" created="Sun, 8 Dec 2019 18:44:12 +0000"  >&lt;p&gt;PR to homebrew-core: &lt;a href=&quot;https://github.com/Homebrew/homebrew-core/pull/47617&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/Homebrew/homebrew-core/pull/47617&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1041385">CDRIVER-3457</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1041386">CDRIVER-3458</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvn76n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>