mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
Rollback 0.0.0 versionning
This commit is contained in:
parent
7490383d4f
commit
32c8846514
20
.github/scripts/check-release.sh
vendored
20
.github/scripts/check-release.sh
vendored
@ -3,24 +3,26 @@
|
|||||||
# check_tag $current_tag $file_tag $file_name
|
# check_tag $current_tag $file_tag $file_name
|
||||||
function check_tag {
|
function check_tag {
|
||||||
if [ "$1" != "$2" ]; then
|
if [ "$1" != "$2" ]; then
|
||||||
echo "Error: the current tag does not match the version in $3:"
|
echo "Error: the current tag does not match the version in $3: found $1 - expected $2"
|
||||||
echo "Found $1 - expected $2"
|
ret=1
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret=0
|
||||||
current_tag=$(echo $GITHUB_REF | tr -d 'refs/tags/v')
|
current_tag=$(echo $GITHUB_REF | tr -d 'refs/tags/v')
|
||||||
|
|
||||||
files='*/Cargo.toml'
|
toml_files='*/Cargo.toml'
|
||||||
for file in $files;
|
for toml_file in $toml_files;
|
||||||
do
|
do
|
||||||
file_tag="$(grep '^version = ' $file | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')"
|
file_tag="$(grep '^version = ' $toml_file | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')"
|
||||||
check_tag $current_tag $file_tag $file
|
check_tag $current_tag $file_tag $toml_file
|
||||||
done
|
done
|
||||||
|
|
||||||
lock_file='Cargo.lock'
|
lock_file='Cargo.lock'
|
||||||
lock_tag=$(grep -A 1 'name = "meilisearch-auth"' $lock_file | grep version | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')
|
lock_tag=$(grep -A 1 'name = "meilisearch-auth"' $lock_file | grep version | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')
|
||||||
check_tag $current_tag $lock_tag $lock_file
|
check_tag $current_tag $lock_tag $lock_file
|
||||||
|
|
||||||
echo 'OK'
|
if [ "$ret" -eq 0 ] ; then
|
||||||
exit 0
|
echo 'OK'
|
||||||
|
fi
|
||||||
|
exit $ret
|
||||||
|
6
Cargo.lock
generated
6
Cargo.lock
generated
@ -2092,7 +2092,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "meilisearch-lib"
|
name = "meilisearch-lib"
|
||||||
version = "0.0.0"
|
version = "0.28.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-rt",
|
"actix-rt",
|
||||||
"actix-web",
|
"actix-web",
|
||||||
@ -2154,7 +2154,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "meilisearch-types"
|
name = "meilisearch-types"
|
||||||
version = "0.0.0"
|
version = "0.28.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-web",
|
"actix-web",
|
||||||
"proptest",
|
"proptest",
|
||||||
@ -2515,7 +2515,7 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "permissive-json-pointer"
|
name = "permissive-json-pointer"
|
||||||
version = "0.0.0"
|
version = "0.28.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"big_s",
|
"big_s",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "meilisearch-lib"
|
name = "meilisearch-lib"
|
||||||
version = "0.0.0"
|
version = "0.28.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "meilisearch-types"
|
name = "meilisearch-types"
|
||||||
version = "0.0.0"
|
version = "0.28.0"
|
||||||
authors = ["marin <postma.marin@protonmail.com>"]
|
authors = ["marin <postma.marin@protonmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "permissive-json-pointer"
|
name = "permissive-json-pointer"
|
||||||
version = "0.0.0"
|
version = "0.28.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A permissive json pointer"
|
description = "A permissive json pointer"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
Loading…
Reference in New Issue
Block a user