-
Notifications
You must be signed in to change notification settings - Fork 886
Update vendor.conf #2028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update vendor.conf #2028
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/bin/bash | ||
|
|
||
| libnetworkPath="/home/flaviocrisciani/macos/src/github.com/docker/libnetwork" | ||
| libnetworkvendor="/tmp/libnetworkVendor" | ||
| dockerPath="/home/flaviocrisciani/work/src/github.com/docker/docker" | ||
| dockervendor="/tmp/dockerVendor" | ||
|
|
||
| cat ${libnetworkPath}/vendor.conf | sort > $libnetworkvendor | ||
| cat ${dockerPath}/vendor.conf | sort > $dockervendor | ||
|
|
||
| declare -A vendorMap | ||
|
|
||
| while IFS= read -r var | ||
| do | ||
| if [[ "$var" == "" || $var == \#* ]]; then | ||
| continue | ||
| fi | ||
| key=$(echo $var | awk '{print $1}') | ||
| value=$(echo $var | awk '{print $2}') | ||
| vendorMap["$key"]=$value | ||
| done < "$dockervendor" | ||
|
|
||
| echo "${vendorMap[@]}" | ||
|
|
||
| while IFS= read -r var | ||
| do | ||
| if [[ "$var" == "" || $var == \#* ]]; then | ||
| continue | ||
| fi | ||
| key=$(echo $var | awk '{print $1}') | ||
| value=$(echo $var | awk '{print $2}') | ||
| if [[ $value != ${vendorMap["$key"]} ]]; then | ||
| RED='\033[0;31m' # Red Color | ||
| NC='\033[0m' # No Color | ||
| printf "$key --> ${RED}$value ${NC}== ${RED}${vendorMap["$key"]}${NC}\n" | ||
| fi | ||
| done < "$libnetworkvendor" | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😇 Path doesn't exist on my machine; perhaps run this in a container? This could be a Make target, and have it fetch https://raw.githubusercontent.com/moby/moby/master/vendor.conf directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also see my "inception bot" wish-list here: moby/moby#35490