Skip to content

Commit dbc9084

Browse files
committed
build/release-nightly.yaml: delete invalid format comment
And fix all.bash prepare_nightly. It needs to access files in build/nightly. Change-Id: I9fab26159ebccc106b6be510088415aaa803ea19 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/555617 TryBot-Result: kokoro <[email protected]> Commit-Queue: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Suzy Mueller <[email protected]>
1 parent 557f09f commit dbc9084

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

build/all.bash

+5-8
Original file line numberDiff line numberDiff line change
@@ -78,32 +78,29 @@ run_test_in_docker() {
7878
}
7979

8080
prepare_nightly() {
81-
pushd .
82-
cd "$(root_dir)/extension"
8381
# Version format: YYYY.MM.DDHH based on the latest commit timestamp.
8482
# e.g. 2020.1.510 is the version built based on a commit that was made
8583
# on 2020/01/05 10:00
8684
local VER=`git log -1 --format=%cd --date="format:%Y.%-m.%-d%H"`
8785
local COMMIT=`git log -1 --format=%H`
8886
echo "**** Preparing nightly release : ${VER} (${COMMIT}) ***"
8987
# Update package.json
90-
(cat package.json | jq --arg VER "${VER}" '
88+
(cat extension/package.json | jq --arg VER "${VER}" '
9189
.version=$VER |
9290
.preview=true |
9391
.name="go-nightly" |
9492
.displayName="Go Nightly" |
9593
.publisher="golang" |
9694
.description="Rich Go language support for Visual Studio Code (Nightly)" |
9795
.contributes.configuration.properties."go.delveConfig".properties.hideSystemGoroutines.default=true
98-
') > /tmp/package.json && cp /tmp/package.json package.json
96+
') > /tmp/package.json && cp /tmp/package.json extension/package.json
9997

10098
# Replace CHANGELOG.md with CHANGELOG.md + Release commit info.
101-
printf "**Release ${VER} @ ${COMMIT}** \n\n" | cat - CHANGELOG.md > /tmp/CHANGELOG.md.new && mv /tmp/CHANGELOG.md.new CHANGELOG.md
99+
printf "**Release ${VER} @ ${COMMIT}** \n\n" | cat - CHANGELOG.md > /tmp/CHANGELOG.md.new && mv /tmp/CHANGELOG.md.new extension/CHANGELOG.md
102100
# Replace the heading of README.md with the heading for Go Nightly.
103-
sed '/^# Go for Visual Studio Code$/d' README.md | cat build/nightly/README.md - > /tmp/README.md.new && mv /tmp/README.md.new README.md
101+
sed '/^# Go for Visual Studio Code$/d' extension/README.md | cat build/nightly/README.md - > /tmp/README.md.new && mv /tmp/README.md.new extension/README.md
104102
# Replace src/const.ts with build/nightly/const.ts.
105-
cp build/nightly/const.ts src/const.ts
106-
popd
103+
cp build/nightly/const.ts extension/src/const.ts
107104
}
108105

109106
main() {

build/release-nightly.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ steps:
2929
entrypoint: npm
3030
- name: us-docker.pkg.dev/$PROJECT_ID/vscode-go-docker-repo/ci-image
3131
args:
32-
- build/all.bash // TODO: replace all.bash with release.go
32+
- build/all.bash
3333
- prepare_nightly
3434
dir: vscode-go
3535
id: prepare nightly release

0 commit comments

Comments
 (0)