Skip to content

Commit 817a266

Browse files
ruflinexekias
authored andcommitted
Fix README.md link in packages (#5715)
The links in the README.md file are broken for the 6.0 release. The reason is that gotpl interprets 6.0 and makes 6 out of it. Add "..." around fixes the issue.
1 parent ebdec71 commit 817a266

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ https://github.com/elastic/beats/compare/v6.0.0...master[Check the HEAD diff]
3030

3131
*Affecting all Beats*
3232

33+
- Fix documentation links in README.md files. {pull}5710[5710]
34+
3335
*Auditbeat*
3436

3537
*Filebeat*

dev-tools/packer/xgo-scripts/before_build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ fi
5454
cat ${ES_BEATS}/libbeat/docs/version.asciidoc >> ${PREFIX}/package.yml
5555

5656
# Make variable naming of doc-branch compatible with gotpl. Generate and copy README.md into homedir
57-
sed -i -e 's/:doc-branch/doc_branch/g' ${PREFIX}/package.yml
57+
# Add " to the version as gotpl interprets 6.0 as 6
58+
sed -i -e 's/:doc-branch: \([0-9]*.[0-9]*\)/doc_branch: "\1" /g' ${PREFIX}/package.yml
5859

5960
# Create README file
6061
/go/bin/gotpl /templates/readme.md.j2 < ${PREFIX}/package.yml > ${PREFIX}/homedir/README.md

0 commit comments

Comments
 (0)