Skip to content

Commit 8bff265

Browse files
committed
fixing problem with go release
1 parent 866b1c5 commit 8bff265

File tree

4 files changed

+35
-21
lines changed

4 files changed

+35
-21
lines changed

azure-pipelines/build-release.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,25 @@ stages:
3131
# vmImageName: ubuntu-latest
3232
# uploadCoverage: "false"
3333

34-
Linux_Py_3_8:
35-
python.version: '3.8'
36-
vmImageName: ubuntu-latest
37-
uploadCoverage: "false"
34+
# Linux_Py_3_8:
35+
# python.version: '3.8'
36+
# vmImageName: ubuntu-latest
37+
# uploadCoverage: "false"
3838

3939
Linux_Py_3_9:
4040
python.version: '3.9'
4141
vmImageName: ubuntu-latest
4242
uploadCoverage: "true"
4343

44-
Linux_Py_3_10:
45-
python.version: '3.10'
46-
vmImageName: ubuntu-latest
47-
uploadCoverage: "false"
44+
# Linux_Py_3_10:
45+
# python.version: '3.10'
46+
# vmImageName: ubuntu-latest
47+
# uploadCoverage: "false"
4848

49-
Windows_Py_3_7:
50-
python.version: '3.7'
51-
vmImageName: windows-latest
52-
uploadCoverage: "false"
49+
# Windows_Py_3_7:
50+
# python.version: '3.7'
51+
# vmImageName: windows-latest
52+
# uploadCoverage: "false"
5353

5454
# Windows_Py_3_9:
5555
# python.version: '3.9'
@@ -66,10 +66,10 @@ stages:
6666
# vmImageName: macOS-latest
6767
# uploadCoverage: "false"
6868

69-
macOS_Py_3_9:
70-
python.version: '3.9'
71-
vmImageName: macOS-latest
72-
uploadCoverage: "false"
69+
# macOS_Py_3_9:
70+
# python.version: '3.9'
71+
# vmImageName: macOS-latest
72+
# uploadCoverage: "false"
7373

7474
pool:
7575
vmImage: $(vmImageName)
@@ -159,9 +159,9 @@ stages:
159159

160160
steps:
161161
- task: UsePythonVersion@0
162-
displayName: 'Use Python 3.9'
162+
displayName: 'Use Python 3.8'
163163
inputs:
164-
versionSpec: '3.9'
164+
versionSpec: '3.8'
165165

166166
- template: steps/install-development-dependencies.yml
167167

continuous_delivery_scripts/plugins/GOLAND.MD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ The plugin leverages [goreleaser](https://goreleaser.com/) to package and releas
99
Therefore, a `.goreleaser.yml` file must be present in the go source directory i.e. where the mod file lies.
1010

1111
## Documentation
12-
The plugin uses [golds](https://github.com/go101/golds) to generate the code reference documentation.
12+
The plugin uses [golds](https://github.com/go101/golds) to generate the code reference documentation.
13+
It currently uses version 0.4.1 as later versions comprise [an issue](https://github.com/go101/golds/issues/26)

continuous_delivery_scripts/plugins/golang.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@
2424

2525

2626
def _generate_golds_command_list(output_directory: Path, module: str) -> List[str]:
27-
return ["golds", "-gen", "-wdpkgs-listing=promoted", f"-dir={str(output_directory)}", "-nouses", f"{module}"]
27+
return [
28+
"golds",
29+
"-gen",
30+
"-wdpkgs-listing=solo",
31+
"-only-list-exporteds",
32+
f"-dir={str(output_directory)}",
33+
"-nouses",
34+
f"{module}",
35+
]
2836

2937

3038
def _generate_goreleaser_release_command_list(changelog: Path) -> List[str]:
@@ -45,7 +53,11 @@ def _generate_goreleaser_check_command_list() -> List[str]:
4553

4654

4755
def _install_golds_command_list() -> List[str]:
48-
return ["go", "install", "go101.org/golds@latest"]
56+
return [
57+
"go",
58+
"install",
59+
"go101.org/[email protected]",
60+
] # FIXME change version to latest when https://github.com/go101/golds/issues/26 is fixed
4961

5062

5163
def _install_goreleaser_command_list() -> List[str]:

news/202202171446.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[GO] Fixed [golds version](https://github.com/go101/golds/issues/26) by fixing the version to v0.4.1

0 commit comments

Comments
 (0)