1
1
<!--
2
- -- Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
2
+ -- Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved.
3
3
-- SPDX-License-Identifier: Apache-2.0
4
4
-->
5
5
<!doctype html>
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
32
32
< span > Expand source code</ span >
33
33
</ summary >
34
34
< pre > < code class ="python "> #
35
- # Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
35
+ # Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved.
36
36
# SPDX-License-Identifier: Apache-2.0
37
37
#
38
38
"""Plugin for Golang projects."""
@@ -57,7 +57,15 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
57
57
58
58
59
59
def _generate_golds_command_list(output_directory: Path, module: str) -> List[str]:
60
- return ["golds", "-gen", "-wdpkgs-listing=promoted", f"-dir={str(output_directory)}", "-nouses", f"{module}"]
60
+ return [
61
+ "golds",
62
+ "-gen",
63
+ "-wdpkgs-listing=solo",
64
+ "-only-list-exporteds",
65
+ f"-dir={str(output_directory)}",
66
+ "-nouses",
67
+ f"{module}",
68
+ ]
61
69
62
70
63
71
def _generate_goreleaser_release_command_list(changelog: Path) -> List[str]:
@@ -78,7 +86,11 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
78
86
79
87
80
88
def _install_golds_command_list() -> List[str]:
81
- return ["go", "install", "go101.org/golds@latest"]
89
+ return [
90
+ "go",
91
+ "install",
92
+ "go101.org/
[email protected] ",
93
+ ] # FIXME change version to latest when https://github.com/go101/golds/issues/26 is fixed
82
94
83
95
84
96
def _install_goreleaser_command_list() -> List[str]:
0 commit comments