<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:07 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-855] when to support install by go module</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-855</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;when to support go modules, now install only support dep&lt;/p&gt;</description>
                <environment></environment>
        <key id="705626">GODRIVER-855</key>
            <summary>when to support install by go module</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jackylee">orange.jackylee</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Feb 2019 08:22:06 +0000</created>
                <updated>Thu, 7 Mar 2019 21:36:27 +0000</updated>
                            <resolved>Thu, 7 Mar 2019 21:36:27 +0000</resolved>
                                    <version>1.1.0</version>
                    <version>1.0.0</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2164437" author="jackylee" created="Wed, 27 Feb 2019 08:25:16 +0000"  >&lt;p&gt;macbookpro:go_dirver fredlee$ ll&lt;br/&gt;
total 16K&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 fredlee staff 2.4K  2 27 16:19 Gopkg.lock&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 fredlee staff  741  2 27 16:19 Gopkg.toml&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 fredlee staff 3.7K  2 27 16:13 main.go&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 fredlee staff 1.4K  2 27 14:57 sftp-config.json&lt;br/&gt;
drwxr-xr-x 5 fredlee staff  160  2 27 16:19 vendor&lt;br/&gt;
macbookpro:go_dirver fredlee$ dep ensure -add go.mongodb.org/mongo-driver/mongo&lt;br/&gt;
Fetching sources...&lt;/p&gt;

&lt;p&gt;&quot;go.mongodb.org/mongo-driver/mongo&quot; is not imported by your project, and has been temporarily added to Gopkg.lock and vendor/.&lt;br/&gt;
If you run &quot;dep ensure&quot; again before actually importing it, it will disappear from Gopkg.lock and vendor/.&lt;br/&gt;
macbookpro:go_dirver fredlee$ ll&lt;br/&gt;
total 16K&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 fredlee staff 2.4K  2 27 16:19 Gopkg.lock&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 fredlee staff  741  2 27 16:19 Gopkg.toml&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 fredlee staff 3.7K  2 27 16:13 main.go&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 fredlee staff 1.4K  2 27 14:57 sftp-config.json&lt;br/&gt;
drwxr-xr-x 5 fredlee staff  160  2 27 16:19 vendor&lt;br/&gt;
macbookpro:go_dirver fredlee$ go build &lt;br/&gt;
go: creating new go.mod: module example/db/mongo/go_dirver&lt;br/&gt;
go: copying requirements from Gopkg.lock&lt;br/&gt;
go: finding github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc&lt;br/&gt;
go: extracting go.mongodb.org/mongo-driver v0.3.0&lt;br/&gt;
go: extracting github.com/mongodb/mongo-go-driver v0.3.0&lt;br/&gt;
go: downloading github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc&lt;br/&gt;
go: extracting github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;example/db/mongo/go_dirver&lt;br/&gt;
./main.go:101:45: &quot;go.mongodb.org/mongo-driver/mongo/options&quot;.Client().SetAppName(&quot;myapp&quot;).SetConnectTimeout(time.Second).SetSocketTimeout(time.Second).SetServerSelectionTimeout(time.Second * 3).ApplyURI undefined (type *&quot;go.mongodb.org/mongo-driver/mongo/options&quot;.ClientOptions has no field or method ApplyURI)&lt;br/&gt;
macbookpro:go_dirver fredlee$ &lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;func f3() {&lt;br/&gt;
	clientOpts := options.Client().&lt;br/&gt;
		SetAppName(&quot;myapp&quot;).&lt;br/&gt;
		SetConnectTimeout(time.Second).&lt;br/&gt;
		SetSocketTimeout(time.Second).&lt;br/&gt;
		SetServerSelectionTimeout(time.Second * 3).&lt;br/&gt;
		ApplyURI(&quot;mongodb://localhost:27017&quot;).&lt;br/&gt;
		SetAuth(options.Credential&lt;/p&gt;
{
			AuthMechanism: &quot;SCRAM-SHA-1&quot;,
			AuthSource:    &quot;tips&quot;,
			Username:      &quot;xxx&quot;,
			Password:      &quot;xxxx&quot;}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;	client, err := mongo.NewClient(clientOpts)&lt;br/&gt;
	checkErr(err)&lt;br/&gt;
	ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)&lt;br/&gt;
	err = client.Connect(ctx)&lt;br/&gt;
	checkErr(err)&lt;/p&gt;

&lt;p&gt;	collection := client.Database(&quot;tips&quot;).Collection(&quot;tips&quot;)&lt;br/&gt;
	var tips []bson.M&lt;/p&gt;

&lt;p&gt;	ctx, _ = context.WithTimeout(context.Background(), 30*time.Second)&lt;br/&gt;
	cur, err := collection.Find(ctx, bson.D{})&lt;br/&gt;
	if err != nil &lt;/p&gt;
{
		log.Fatal(err)
	}&lt;br/&gt;
	defer cur.Close(ctx)&lt;br/&gt;
	for cur.Next(ctx) {&lt;br/&gt;
		var result bson.M&lt;br/&gt;
		err := cur.Decode(&amp;amp;result)&lt;br/&gt;
		if err != nil {
			log.Fatal(err)
		}&lt;br/&gt;
		// do something with result....&lt;br/&gt;
		tips = append(tips, result)&lt;br/&gt;
	}&lt;br/&gt;
	if err := cur.Err(); err != nil {
		log.Fatal(err)
	}
&lt;p&gt;}&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="600492">GODRIVER-543</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|huemun:</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>