Skip to content

Commit ce2323e

Browse files
authored
Revert "chore: Use a fix version for Preview" (#453)
1 parent 044baef commit ce2323e

File tree

5 files changed

+2
-55
lines changed

5 files changed

+2
-55
lines changed

.github/workflows/autoupdate-preview.yaml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ jobs:
3232
run: |
3333
export PATH=${PATH}:`go env GOPATH`/bin
3434
make clean_and_generate
35-
- name: Update Preview version
36-
if: steps.verify-changed-files.outputs.files_changed == 'true'
37-
working-directory: ./tools
38-
run: make preview-version
3935
- name: Run mock generation
4036
working-directory: ./tools
4137
if: steps.verify-changed-files.outputs.files_changed == 'true'
@@ -48,7 +44,7 @@ jobs:
4844
commit-message: "temp: client update"
4945
delete-branch: true
5046
draft: true
51-
branch: preview-latest
47+
branch: dev-latest
5248
body: |
5349
Automatic update for MongoDB Atlas Go Client based on *release candidate* OpenAPI file.
5450
**DO NOT MERGE THIS PR TO THE MAIN BRANCH**
@@ -60,24 +56,9 @@ jobs:
6056
## Using early preview changes
6157
6258
```sh
63-
go get github.com/mongodb/atlas-sdk-go@preview-latest
64-
```
65-
> NOTE: The version is fixed so you have to do the `go get` command every time you want to update the Preview version to the latest version.
66-
67-
After that you can use it as usual, e.g.:
68-
```go
69-
...
70-
import(
71-
adminPreview "github.com/mongodb/atlas-sdk-go/admin"
72-
...
73-
74-
params := &adminPreview.ListProjectsApiParams{ ...
75-
...
76-
59+
go get go.mongodb.org/atlas-sdk@dev-latest
7760
```
7861
79-
> NOTE: After you use it at least in one go file, run `go mod tidy` to have it in your go.mod file as a direct dependency.
80-
8162
## Automated checks done for preview sdk
8263
8364
1. Compilation and unit tests

tools/CONTRIBUTING.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,3 @@ https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-ge
5050

5151
We use [go-apidiff](https://github.com/joelanford/go-apidiff) to detect if there are breaking changes and a new major version release is needed.
5252
In [Generate SDK Github action](../.github/workflows/autoupdate-prod.yaml), `API_DIFF_OLD_COMMIT` and `API_DIFF_NEW_COMMIT` are used to do the comparison.
53-
54-
## SDK Preview
55-
56-
The [Generate Preview SDK Github action](../.github/workflows/autoupdate-preview.yaml) creates a PR with latest changes.
57-
It's created in package `github.com/mongodb/atlas-sdk-go` instead of `go.mongodb.org/atlas-sdk/vXXXXXXXXXXX` so no official release is needed for Preview and it makes it clear that it's not a regular version.

tools/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ generate_tests:
3737
new-version:
3838
./releaser/scripts/new-version.sh
3939

40-
.PHONY: preview-version
41-
preview-version:
42-
./releaser/scripts/preview-version.sh
43-
4440
.PHONY: update-version
4541
update-version:
4642
## When manually updating major version

tools/releaser/scripts/preview-version.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
#!/bin/bash
22

33
export VERSION_UPDATE_PATHS="../**/go.mod,../**/*.go,../tools/**/*.mustache,../.mockery.yaml,../**/*.md"
4-
5-
# don't change doc files to reduce Preview PR noise
6-
export VERSION_UPDATE_PATHS_PREVIEW="../**/go.mod,../**/*.go,../tools/**/*.mustache,../.mockery.yaml"

0 commit comments

Comments
 (0)