Closed changchichung closed 3 years ago
what I do
chchang@hqdc039:~$ cd git chchang@hqdc039:~/git$ git clone https://github.com/lus/pasty 正複製到 'pasty'... remote: Enumerating objects: 529, done. remote: Counting objects: 100% (529/529), done. remote: Compressing objects: 100% (301/301), done. remote: Total 529 (delta 262), reused 432 (delta 168), pack-reused 0 接收物件中: 100% (529/529), 126.29 KiB | 329.00 KiB/s, 完成. 處理 delta 中: 100% (262/262), 完成. chchang@hqdc039:~/git$ cd pasty/ chchang@hqdc039:~/git/pasty$ go build -o pasty ./cmd/pasty/main.go go: downloading github.com/ulule/limiter/v3 v3.5.0 go: downloading github.com/minio/minio-go/v7 v7.0.5 go: downloading github.com/johejo/golang-migrate-extra v0.0.0-20210217013041-51a992e50d16 go: downloading github.com/fasthttp/router v1.2.4 go: downloading github.com/golang-migrate/migrate/v4 v4.14.2-0.20201125065321-a53e6fc42574 go: downloading go.mongodb.org/mongo-driver v1.4.0 go: downloading github.com/alexedwards/argon2id v0.0.0-20200802152012-2464efd3196b go: extracting github.com/johejo/golang-migrate-extra v0.0.0-20210217013041-51a992e50d16 go: downloading github.com/jackc/pgx/v4 v4.11.0 go: extracting github.com/alexedwards/argon2id v0.0.0-20200802152012-2464efd3196b go: extracting github.com/golang-migrate/migrate/v4 v4.14.2-0.20201125065321-a53e6fc42574 go: extracting github.com/ulule/limiter/v3 v3.5.0 go: extracting github.com/fasthttp/router v1.2.4 go: downloading golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 go: downloading github.com/savsgio/gotils v0.0.0-20200616100644-13ff1fd2c28c go: downloading github.com/valyala/bytebufferpool v1.0.0 go: downloading github.com/joho/godotenv v1.3.0 go: extracting github.com/minio/minio-go/v7 v7.0.5 go: downloading github.com/json-iterator/go v1.1.10 go: extracting github.com/jackc/pgx/v4 v4.11.0 go: downloading github.com/jackc/pgconn v1.8.1 go: extracting github.com/valyala/bytebufferpool v1.0.0 go: extracting github.com/savsgio/gotils v0.0.0-20200616100644-13ff1fd2c28c go: extracting github.com/joho/godotenv v1.3.0 go: downloading golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 go: downloading github.com/google/uuid v1.1.2 go: downloading github.com/hashicorp/go-multierror v1.1.0 go: extracting github.com/google/uuid v1.1.2 go: extracting github.com/hashicorp/go-multierror v1.1.0 go: downloading github.com/jackc/pgtype v1.7.0 go: extracting github.com/jackc/pgconn v1.8.1 go: downloading github.com/lib/pq v1.8.0 go: extracting github.com/json-iterator/go v1.1.10 go: downloading gopkg.in/ini.v1 v1.57.0 go: extracting golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 go: extracting golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 go: downloading github.com/jackc/pgproto3 v1.1.0 go: extracting go.mongodb.org/mongo-driver v1.4.0 go: downloading github.com/minio/md5-simd v1.1.0 go: downloading github.com/valyala/fasthttp v1.16.0 go: extracting gopkg.in/ini.v1 v1.57.0 go: extracting github.com/lib/pq v1.8.0 go: downloading golang.org/x/text v0.3.3 go: extracting github.com/jackc/pgtype v1.7.0 go: downloading golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd go: extracting github.com/jackc/pgproto3 v1.1.0 go: downloading github.com/jackc/pgproto3/v2 v2.0.6 go: downloading github.com/jackc/puddle v1.1.3 go: downloading github.com/modern-go/reflect2 v1.0.1 go: downloading github.com/rs/xid v1.2.1 go: extracting github.com/minio/md5-simd v1.1.0 go: downloading github.com/klauspost/cpuid v1.3.1 go: downloading github.com/go-stack/stack v1.8.0 go: extracting github.com/valyala/fasthttp v1.16.0 go: downloading github.com/klauspost/compress v1.10.11 go: extracting golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 go: downloading github.com/minio/sha256-simd v0.1.1 go: extracting github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd go: extracting github.com/jackc/puddle v1.1.3 go: downloading golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 go: extracting github.com/rs/xid v1.2.1 go: extracting github.com/modern-go/reflect2 v1.0.1 go: extracting github.com/go-stack/stack v1.8.0 go: extracting github.com/jackc/pgproto3/v2 v2.0.6 go: downloading github.com/jackc/pgio v1.0.0 go: downloading github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b go: downloading github.com/andybalholm/brotli v1.0.0 go: downloading github.com/jackc/chunkreader v1.0.0 go: extracting github.com/klauspost/cpuid v1.3.1 go: extracting github.com/minio/sha256-simd v0.1.1 go: extracting github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b go: extracting github.com/jackc/pgio v1.0.0 go: extracting golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 go: downloading github.com/golang/snappy v0.0.1 go: extracting github.com/jackc/chunkreader v1.0.0 go: downloading github.com/jackc/chunkreader/v2 v2.0.1 go: downloading github.com/aws/aws-sdk-go v1.29.15 go: extracting github.com/andybalholm/brotli v1.0.0 go: extracting github.com/golang/snappy v0.0.1 go: extracting github.com/jackc/chunkreader/v2 v2.0.1 go: extracting golang.org/x/text v0.3.3 go: downloading github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c go: downloading github.com/jackc/pgpassfile v1.0.0 go: downloading github.com/xdg/stringprep v1.0.0 go: extracting github.com/jackc/pgpassfile v1.0.0 go: extracting github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c go: extracting github.com/xdg/stringprep v1.0.0 go: extracting github.com/klauspost/compress v1.10.11 go: extracting github.com/aws/aws-sdk-go v1.29.15 go: finding github.com/joho/godotenv v1.3.0 go: finding github.com/alexedwards/argon2id v0.0.0-20200802152012-2464efd3196b go: finding golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 go: finding golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 go: finding go.mongodb.org/mongo-driver v1.4.0 go: finding github.com/go-stack/stack v1.8.0 go: finding github.com/golang/snappy v0.0.1 go: finding github.com/klauspost/compress v1.10.11 go: finding github.com/aws/aws-sdk-go v1.29.15 go: finding github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c go: finding github.com/xdg/stringprep v1.0.0 go: finding golang.org/x/text v0.3.3 go: finding golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 go: finding github.com/golang-migrate/migrate/v4 v4.14.2-0.20201125065321-a53e6fc42574 go: finding github.com/hashicorp/go-multierror v1.1.0 go: finding github.com/lib/pq v1.8.0 go: finding github.com/jackc/pgx/v4 v4.11.0 go: finding github.com/jackc/pgconn v1.8.1 go: finding github.com/jackc/chunkreader/v2 v2.0.1 go: finding github.com/jackc/pgio v1.0.0 go: finding github.com/jackc/pgpassfile v1.0.0 go: finding github.com/jackc/pgproto3/v2 v2.0.6 go: finding github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b go: finding github.com/jackc/pgtype v1.7.0 go: finding github.com/jackc/puddle v1.1.3 build github.com/johejo/golang-migrate-extra/source/iofs: cannot load github.com/johejo/golang-migrate-extra/source/iofs: no Go source files chchang@hqdc039:~/git/pasty$
Hello.
Please make sure you have Go 1.16 installed.
what I do