<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:06 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>[GODRIVER-849] (type *&quot;project/vendor/go.mongodb.org/mongo-driver/mongo/options&quot;.ClientOptions has no field or method ApplyURI)</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-849</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;I am getting below error while building my Go code:&lt;/p&gt;

&lt;p&gt;.\main.go:23:52: &quot;xp/gomongo/vendor/go.mongodb.org/mongo-driver/mongo/options&quot;.Client().ApplyURI undefined (type *&quot;xp/gomongo/vendor/go.mongodb.org/mongo-driver/mongo/options&quot;.ClientOptions has no field or method ApplyURI&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I have installed mongodb driver using dep as mentioned currently on&#160;&#160;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;main.go&lt;/b&gt; --&amp;gt;&lt;br/&gt;
package main&lt;/p&gt;

&lt;p&gt;import (&lt;br/&gt;
&#160;&#160;&#160;&#160;&quot;context&quot;&lt;br/&gt;
&#160;&#160;&#160;&#160;&quot;fmt&quot;&lt;br/&gt;
&#160;&#160;&#160;&#160;&quot;log&quot;&lt;br/&gt;
&#160;&#160;&#160;&#160;&quot;net/http&quot;&lt;br/&gt;
&#160;&#160;&#160;&#160;&quot;time&quot;&lt;/p&gt;

&lt;p&gt;&#160;&#160;&#160;&#160;&quot;github.com/mongodb/mongo-go-driver/bson&quot;&lt;br/&gt;
&#160;&#160;&#160;&#160;&quot;go.mongodb.org/mongo-driver/mongo&quot;&lt;br/&gt;
&#160;&#160;&#160;&#160;&quot;go.mongodb.org/mongo-driver/mongo/options&quot;&lt;br/&gt;
)&lt;/p&gt;

&lt;p&gt;func rootHandler(w http.ResponseWriter, r *http.Request) &lt;/p&gt;
{
&#160;&#160;&#160;&#160;fmt.Fprintln(w, &quot;Its Started...&quot;)
}

&lt;p&gt;func main() &lt;/p&gt;
{
&#160;&#160;&#160;&#160;fmt.Println(&quot;Welcome!&quot;)

&#160;&#160;&#160;&#160;ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
&#160;&#160;&#160;&#160;client, err := mongo.Connect(ctx, options.Client().ApplyURI(&quot;mongodb://localhost:27017&quot;))

&#160;&#160;&#160;&#160;collection := client.Database(&quot;xpdb&quot;).Collection(&quot;users&quot;)
&#160;&#160;&#160;&#160;res, err := collection.InsertOne(ctx, bson.M\{&quot;name&quot;: &quot;Abhay&quot;, &quot;place&quot;: &quot;Sawantwadi&quot;}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;&#160;&#160;&#160;&#160;http.HandleFunc(&quot;/&quot;, rootHandler)&lt;br/&gt;
&#160;&#160;&#160;&#160;log.Fatal(http.ListenAndServe(&quot;:8080&quot;, nil))&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>OS: Windows 10&lt;br/&gt;
Go version: 1.11.5 windows/amd64</environment>
        <key id="703809">GODRIVER-849</key>
            <summary>(type *&quot;project/vendor/go.mongodb.org/mongo-driver/mongo/options&quot;.ClientOptions has no field or method ApplyURI)</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="9">Done</resolution>
                                        <assignee username="isabella.siu@mongodb.com">Isabella Siu</assignee>
                                    <reporter username="abhaygawade">abhaygawade</reporter>
                        <labels>
                    </labels>
                <created>Mon, 25 Feb 2019 14:31:00 +0000</created>
                <updated>Wed, 11 Sep 2019 18:35:34 +0000</updated>
                            <resolved>Mon, 4 Mar 2019 21:31:17 +0000</resolved>
                                    <version>0.3.0</version>
                                                    <component>Connections</component>
                    <component>Options &amp;amp; Configuration</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2163024" author="isabella.siu" created="Tue, 26 Feb 2019 15:35:34 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=abhaygawade&quot; class=&quot;user-hover&quot; rel=&quot;abhaygawade&quot;&gt;abhaygawade&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;dep places 0.3.0 ahead of 1.0.0-rc1 when picking an update version. To choose 1.0.0-rc1, the dep ensure command should be run as:&lt;/p&gt;

&lt;p&gt;dep ensure -add go.mongodb.org/mongo-driver/mongo@1.0.0-rc1&lt;/p&gt;</comment>
                            <comment id="2162536" author="abhaygawade" created="Tue, 26 Feb 2019 02:22:31 +0000"  >&lt;p&gt;Thanks&#160;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=isabella.siu&quot; class=&quot;user-hover&quot; rel=&quot;isabella.siu&quot;&gt;isabella.siu&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;This means the initial dep ensure -add&#160;go.mongodb.org/mongo-driver should give latest version 1.0.0-rc1 instead of 0.3.0&lt;/p&gt;

&lt;p&gt;We are good to close this issue if latest version of driver is coming through dep.&lt;/p&gt;</comment>
                            <comment id="2162345" author="isabella.siu" created="Mon, 25 Feb 2019 22:30:20 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=abhaygawade&quot; class=&quot;user-hover&quot; rel=&quot;abhaygawade&quot;&gt;abhaygawade&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;The NewClient argument were changed between versions 0.3.0 and 1.0.0-rc1, so to use this syntax you should update the version constraint for&#160;go.mongodb.org/mongo-driver in your Gopkg.toml to &quot;v1.0.0-rc1&quot;, and run&#160;&quot;dep ensure -update go.mongodb.org/mongo-driver&quot; to update the version.&lt;/p&gt;</comment>
                    </comments>
                    <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|huec13:</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>