Skip to content

Commit

Permalink
Add script to determine dependency sizes
Browse files Browse the repository at this point in the history
export GOPATH=/foo
sh contrib/script/size.sh

Signed-off-by: baude <[email protected]>

Closes: #535
Approved by: baude
  • Loading branch information
baude authored and rh-atomic-bot committed Mar 23, 2018
1 parent c55e371 commit 6cf7ddb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/script/size.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

: "${GOPATH?Need to set GOPATH}"

cd cmd/podman/ && eval `go build -work -a 2>&1` && find $WORK -type f -name "*.a" | xargs -I{} du -hxs "{}" | sort -rh | sed -e s:${WORK}/::g

0 comments on commit 6cf7ddb

Please sign in to comment.