This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Copy plugins into 'v2/publisher' folders. Rename field name to displayName. Rename field id to name. Remove /meta.yaml from plugin links in index. Add deprecate section to old plugins. Rework scripts. Add migrate section to registry index. Add old notation plugins to v2 not to break exisiting workspaces. Adapt Readme.md. Signed-off-by: Oleksandr Garagatyi <[email protected]>
- Loading branch information
Oleksandr Garagatyi
authored
Apr 24, 2019
1 parent
3e95e4d
commit 1003e15
Showing
40 changed files
with
775 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2012-2018 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
set -e | ||
|
||
source ./util.sh | ||
|
||
declare -a arr=(`find plugins -name "meta.yaml"`) | ||
for i in "${arr[@]}" | ||
do | ||
id=$(yq r "$i" id | sed 's/^"\(.*\)"$/\1/') | ||
version=$(yq r "$i" version | sed 's/^"\(.*\)"$/\1/') | ||
|
||
expected_path="plugins/${id}/${version}/meta.yaml" | ||
if [[ "${expected_path}" != "$i" ]];then | ||
echo "!!! Location mismatch in plugin '${id}:${version}':" | ||
echo "!!! Expected location: '${expected_path}'" | ||
echo "!!! Actual location: '${i}' " | ||
FOUND=true | ||
fi | ||
done | ||
|
||
if [[ $FOUND ]];then | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2012-2018 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
|
||
set -e | ||
|
||
source ./util.sh | ||
|
||
declare -a arr=(`find v2 -name "meta.yaml"`) | ||
for i in "${arr[@]}" | ||
do | ||
plugin_id=$(evaluate_plugin_id $i) | ||
|
||
expected_path="v2/plugins/${plugin_id}/meta.yaml" | ||
if [[ "${expected_path}" != "$i" ]]; then | ||
echo "!!! Location mismatch in plugin '${plugin_id}':" | ||
echo "!!! Expected location: '${expected_path}'" | ||
echo "!!! Actual location: '${i}' " | ||
FOUND=true | ||
fi | ||
done | ||
|
||
if [[ $FOUND ]];then | ||
exit 1 | ||
fi |
Oops, something went wrong.