Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
7a0895d
GODRIVER-3455 Make BSON benchmarks more representative of real use ca…
matthewdale Apr 9, 2025
768703c
Add CODEOWNERS file (#2018)
alcaeus Apr 11, 2025
c205d4f
GODRIVER-3505, GODRIVER-3524, GODRIVER-3520 Bump testdata/specificati…
dependabot[bot] Apr 11, 2025
2cd7f73
GODRIVER-3478 Use ExtJSON for BSON binary vector spec tests. (#2003)
qingyang-hu Apr 11, 2025
7791095
GODRIVER-3532 Bump testdata/specifications from `6118deb` to `43d2c7b…
dependabot[bot] Apr 14, 2025
bb68567
GODRIVER-3512 Revise assertion for unacknowledged client bulkWrite re…
qingyang-hu Apr 18, 2025
d5c8b38
GODRIVER-3444 Adjust getMore maxTimeMS Calculation for tailable await…
prestonvasquez Apr 22, 2025
4a5f2f9
Bump golang.org/x/net from 0.26.0 to 0.36.0 in /internal/test/compile…
dependabot[bot] Apr 25, 2025
83139e6
Bump golang.org/x/net from 0.36.0 to 0.38.0 in /internal/test/compile…
dependabot[bot] Apr 28, 2025
dbe0acc
GODRIVER-3549 Fix timeouts in CSE custom endpoint test (#2028)
prestonvasquez Apr 30, 2025
8c453d2
GODRIVER-3533 Optimize value reader and writer (#2022)
prestonvasquez May 1, 2025
50523c2
GODRIVER-3037 Support internal-only options. (#2023)
qingyang-hu May 1, 2025
f7f3635
DEVPROD-17319 - update perf.send command to new results end point (#2…
MAhmadShah May 2, 2025
4dc9db0
GODRIVER-3486 Bump testdata/specifications from `43d2c7b` to `0c41c8b…
dependabot[bot] May 5, 2025
078cae7
Merge branch 'master' into merge-release/2.2-into-master-1746481223008
prestonvasquez May 5, 2025
7acde7d
Merge pull request #2039 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] May 5, 2025
81ca253
Merge release/2.2 into master (#2042)
mongodb-drivers-pr-bot[bot] May 6, 2025
e86c9aa
Merge pull request #2043 from mongodb/merge-release/2.2-into-master-1…
alcaeus May 7, 2025
ba55a87
Merge branch 'release/2.2' into merge-release/2.2-into-master-1746622…
alcaeus May 7, 2025
b73df4e
Merge pull request #2046 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] May 7, 2025
dc48722
GODRIVER-3550 Update Documentation for Go Driver Branching and Merge …
prestonvasquez May 7, 2025
f75c91c
GODRIVER-3429 Revert internal-only "AuthenticateToAnything". (#2025)
qingyang-hu May 9, 2025
e918e14
GODRIVER-3527 Remove unused testdata directories (#2048)
prestonvasquez May 9, 2025
12598be
GODRIVER-3361 Improve connection error message. (#2027)
qingyang-hu May 9, 2025
4bbb04f
Add configuration for automated release notes (#2047)
alcaeus May 12, 2025
ffceb52
GODRIVER-3523 GODRIVER-3549 Bump testdata/specifications from `0c41c8…
dependabot[bot] May 19, 2025
8462451
Eventually assertion in TestConnection should check the nil condition…
prestonvasquez May 19, 2025
d2a8537
Update README.md (#2055)
rishitb-mongodb May 22, 2025
3a631de
Merge pull request #2064 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] May 28, 2025
428870b
GODRIVER-3515 Bump the minimum Go Version to 1.19 (#2054)
prestonvasquez May 28, 2025
cf19a4b
GODRIVER-3486 Bump testdata/specifications from `9d0d3f0` to `1c1500a…
dependabot[bot] May 28, 2025
43105f8
Convert test modules to v2 (#2069)
prestonvasquez May 28, 2025
4a513f1
Merge branch 'master' into merge-release/2.2-into-master-1748543268150
prestonvasquez May 29, 2025
d4bc5d8
Merge pull request #2071 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] May 29, 2025
831027d
Merge branch 'master' into merge-release/2.2-into-master-1748543904828
prestonvasquez May 29, 2025
f8f6aa5
Resole merge conflicts
prestonvasquez May 29, 2025
4d96407
Merge branch 'master' into merge-release/2.2-into-master-1748546887808
prestonvasquez May 29, 2025
a127faa
Merge pull request #2073 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] May 29, 2025
c73c73e
Merge branch 'master' into merge-release/2.2-into-master-1748546887808
prestonvasquez May 29, 2025
579a265
Merge pull request #2074 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] May 29, 2025
ce350f1
Bump testdata/specifications from `1c1500a` to `f4c0bbd` (#2078)
dependabot[bot] Jun 2, 2025
ad5468b
GODRIVER-3574 Align BSON interface slice decoding with json package. …
qingyang-hu Jun 4, 2025
f58645d
GODRIVER-3565 Add UnmarshalBSON to GridFSFile (#2077)
prestonvasquez Jun 4, 2025
9dda110
Merge pull request #2083 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] Jun 5, 2025
5801b7f
Merge branch 'master' into merge-release/2.2-into-master-1749157231006
prestonvasquez Jun 5, 2025
93d8cda
Merge pull request #2086 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] Jun 5, 2025
2ebbdeb
Merge branch 'master' into merge-release/2.2-into-master-1749159495877
prestonvasquez Jun 5, 2025
18ed110
Merge branch 'release/2.2'
mongodb-dbx-release-bot[bot] Jun 5, 2025
f8e4368
Merge pull request #2087 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] Jun 5, 2025
ab85112
Merge branch 'release/2.2' into merge-release/2.2-into-master-1749161…
alcaeus Jun 6, 2025
be342e7
Merge pull request #2088 from mongodb/merge-release/2.2-into-master-1…
alcaeus Jun 6, 2025
a7f2aff
Merge branch 'merge-release/2.2-into-master-1749218797481' of github.…
prestonvasquez Jun 6, 2025
8715790
Merge pull request #2090 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] Jun 6, 2025
0485aea
GODRIVER-3569 Convert testaws to go test (#2091)
prestonvasquez Jun 9, 2025
8711799
Bump testdata/specifications from `f4c0bbd` to `4e5d624` (#2092)
dependabot[bot] Jun 9, 2025
a12b92c
GODRIVER-3543 Check license headers in pre-commit.
matthewdale Jun 10, 2025
6c7c63a
Merge branch 'master' into merge-release/2.2-into-master-1749561347682
prestonvasquez Jun 10, 2025
3b0d247
Merge pull request #2096 from mongodb/merge-release/2.2-into-master-1…
mongodb-drivers-pr-bot[bot] Jun 10, 2025
5bde67f
Merge pull request #2095 from matthewdale/godriver3543-precommit-lice…
matthewdale Jun 10, 2025
f650e80
GODRIVER-3494 Deprecate hedged read preference methods.
matthewdale Jun 12, 2025
987b3ec
Merge pull request #2100 from matthewdale/godriver3494-dep-hedgedread
matthewdale Jun 13, 2025
cbf8baf
Create scorecard.yml
zhouselena Jun 18, 2025
73ad05e
Merge pull request #2104 from zhouselena/GODRIVER-3457
zhouselena Jun 18, 2025
f1458ee
add scorecard to README
zhouselena Jun 18, 2025
52bcf31
Update README.md
zhouselena Jun 20, 2025
517dd58
Merge pull request #2105 from zhouselena/GODRIVER-3457-2
zhouselena Jun 20, 2025
6b2b6ae
add catch for non default client
zhouselena Jun 20, 2025
ac1227e
Merge branch 'master' of https://github.com/mongodb/mongo-go-driver i…
zhouselena Jun 20, 2025
6563b4b
cleanup
zhouselena Jun 20, 2025
6b626ce
update comment
zhouselena Jun 20, 2025
fe60b18
GODRIVER-3518: Test flexible numeric comparisons with $$lte (#2106)
zhouselena Jun 20, 2025
7b2f23d
Merge branch 'master' of github.com:zhouselena/mongo-go-driver into G…
zhouselena Jun 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @mongodb/dbx-go
21 changes: 21 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
changelog:
exclude:
labels:
- ignore-for-release
- submodules
authors:
- mongodb-drivers-pr-bot
categories:
- title: Breaking Changes 🛠
labels:
- breaking-change
- title: New Features
labels:
- enhancement
- title: Fixed
labels:
- bug
- fixed
- title: Other Changes
labels:
- "*"
78 changes: 78 additions & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.

name: Scorecard supply-chain security
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '24 21 * * 1'
push:
branches: [ "master" ]

# Declare default permissions as read only.
permissions: read-all

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
# `publish_results: true` only works when run from the default branch. conditional can be removed if disabled.
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
# Uncomment the permissions below if installing in a private repository.
# contents: read
# actions: read

steps:
- name: "Checkout code"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
with:
results_file: results.sarif
results_format: sarif
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
# - you want to enable the Branch-Protection check on a *public* repository, or
# - you are installing Scorecard on a *private* repository
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
# repo_token: ${{ secrets.SCORECARD_TOKEN }}

# Public repositories:
# - Publish results to OpenSSF REST API for easy access by consumers
# - Allows the repository to include the Scorecard badge.
# - See https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories:
# - `publish_results` will always be set to `false`, regardless
# of the value entered here.
publish_results: true

# (Optional) Uncomment file_mode if you have a .gitattributes with files marked export-ignore
# file_mode: git

# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ repos:
require_serial: true
pass_filenames: false
entry: etc/golangci-lint.sh

- id: check-licenses
name: check-licenses
language: system
types: [go]
entry: etc/check_license.sh
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<a href="https://pkg.go.dev/go.mongodb.org/mongo-driver/v2/mongo"><img src="etc/assets/godev-mongo-blue.svg" alt="docs"></a>
<a href="https://pkg.go.dev/go.mongodb.org/mongo-driver/v2/bson"><img src="etc/assets/godev-bson-blue.svg" alt="docs"></a>
<a href="https://www.mongodb.com/docs/drivers/go/current/"><img src="etc/assets/docs-mongodb-green.svg"></a>
<a href="https://securityscorecards.dev/viewer/?uri=github.com/mongodb/mongo-go-driver">
<img src="https://api.securityscorecards.dev/projects/github.com/mongodb/mongo-go-driver/badge" alt="OpenSSF Scorecard" />
</a>
</p>

# MongoDB Go Driver
Expand All @@ -15,9 +18,11 @@ See the following resources to learn more about upgrading from version 1.x to 2.
- [v2.0 Migration Guide](docs/migration-2.0.md)
- [v2.0 What's New](https://www.mongodb.com/docs/drivers/go/upcoming/whats-new/#what-s-new-in-2.0)

The MongoDB Go driver follows [semantic versioning](https://semver.org/) for its releases.

## Requirements

- Go 1.18 or higher. We aim to support the latest versions of Go.
- Go 1.19 or higher. We aim to support the latest versions of Go.
- Go 1.23 or higher is required to run the driver test suite.
- MongoDB 4.0 and higher.

Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tasks:

build-compile-check-all: bash etc/run-compile-check-test.sh

build-aws-ecs-test: go build ${BUILD_TAGS} ./internal/cmd/testaws/main.go
build-aws-ecs-test: go test -c ./internal/test/aws -o aws.testbin

cross-compile:
- GOOS=linux GOARCH=386 go build ./...
Expand Down
Loading
Loading