Skip to content

Commit

Permalink
fix: update stdlib packages (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
butuzov authored Apr 17, 2023
1 parent d05983a commit 4f0f2a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions analyzer/std.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions scripts/generate-std.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mkdir -p .tmp

# create std pkg list
for i in $(seq 1 17); do
for i in $(seq 1 20); do
docker run --rm -it golang:1.$i go list std \
| grep -v internal | grep -v vendor > .tmp/go@1.$i;
docker rmi golang:1.$i
Expand All @@ -21,7 +21,7 @@ echo "package analyzer" >> $dest
echo "" >> $dest
echo "var std = map[string]struct{}{" >> $dest

for i in $(seq 2 17); do
for i in $(seq 2 20); do

printf "\t// added in Go v1.%s in compare to v1.%s (docker image)\n" $i "$(($i-1))" >> $dest

Expand Down

0 comments on commit 4f0f2a6

Please sign in to comment.