Skip to content

Commit

Permalink
bash: revert git-checkout and improve version test (#25531)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayk authored Aug 2, 2024
1 parent b51734e commit 54bd22e
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions bash.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
package:
name: bash
version: 5.2.32
epoch: 0
epoch: 1
description: "GNU bourne again shell"
copyright:
- license: GPL-3.0-or-later

# The bash git repository only tags using major.minor version numbers
var-transforms:
- from: ${{package.version}}
match: (\d+\.\d+).*
replace: $1
to: mangled-package-version

environment:
contents:
packages:
Expand All @@ -22,11 +15,10 @@ environment:
- ncurses-dev

pipeline:
- uses: git-checkout
- uses: fetch
with:
repository: https://git.savannah.gnu.org/git/bash.git
tag: bash-${{vars.mangled-package-version}}
expected-commit: 74091dd4e8086db518b30df7f222691524469998
uri: https://ftp.gnu.org/gnu/bash/bash-${{package.version}}.tar.gz
expected-sha256: d3ef80d2b67d8cbbe4d3265c63a72c46f9b278ead6e0e06d61801b58f23f50b5

- runs: |
./configure \
Expand Down Expand Up @@ -95,6 +87,6 @@ update:
test:
pipeline:
- runs: |
/bin/bash --version || exit 1
/bin/bash --version || grep ${{package.version}}
- runs: |
/bin/bash -c "echo 'hello world'" || exit 1

0 comments on commit 54bd22e

Please sign in to comment.