Skip to content

Commit

Permalink
Correct a download URL; bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
danhunsaker committed Apr 9, 2023
1 parent 46c215b commit a80e7dd
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 25 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Microbox
Copyright (c) 2015-2019 Nanobox, 2019-present The Microbox Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![microboxdesktop logo](http://assets.microbox.rocks/readme-headers/microboxdesktop.png)](http://microbox.cloud/open-source#microboxdesktop)
[![Build Status](https://travis-ci.org/mu-box/microbox.svg)](https://travis-ci.org/mu-box/microbox)
[![microboxdesktop logo](http://microbox.rocks/assets/readme-headers/microboxdesktop.png)](http://microbox.cloud/open-source#microboxdesktop)
[![Build Status](https://github.com/mu-box/microbox/actions/workflows/ci.yaml/badge.svg)](https://github.com/mu-box/microbox/actions)

## Microbox

Expand Down Expand Up @@ -81,4 +81,4 @@ Microbox uses [govendor](https://github.com/kardianos/govendor#the-vendor-tool-f

For help using Microbox or if you have any questions/suggestions, please reach out to [email protected] or find us on [slack](https://slack.microbox.rocks/). You can also [create a new issue on this project](https://github.com/mu-box/microbox/issues/new).

[![microbox logo](http://assets.microbox.rocks/open-src/microbox-open-src.png)](https://microbox.cloud/open-source/)
[![microbox logo](http://microbox.rocks/assets/open-src/microbox-open-src.png)](https://microbox.cloud/open-source/)
27 changes: 19 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/mu-box/microbox

go 1.17
go 1.20

require (
github.com/boltdb/bolt v1.1.1-0.20151112151049-0b00effdd7a8
Expand All @@ -19,34 +19,45 @@ require (
github.com/spf13/cobra v0.0.0-20160117030938-8e91712f174c
github.com/spf13/viper v0.0.0-20160111150723-a212099cbe6f
github.com/timehop/go-mixpanel v0.0.0-20150630220933-9b81eaf1f33e
golang.org/x/crypto v0.0.0-20160912150327-e311231e8319
golang.org/x/net v0.0.0-20170824174428-57efc9c3d9f9
golang.org/x/sys v0.0.0-20170322234810-8fd966b47dbd
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
golang.org/x/sys v0.0.0-20210915083310-ed5796bab164
)

require (
github.com/Azure/go-ansiterm v0.0.0-20160425224613-388960b65524 // indirect
github.com/BurntSushi/toml v0.1.1-0.20160102144748-5c4df71dfe9a // indirect
github.com/Microsoft/go-winio v0.3.8 // indirect
github.com/Sirupsen/logrus v0.8.6-0.20150724014903-11538ee6888f // indirect
github.com/deckarep/golang-set v1.8.0 // indirect
github.com/docker/distribution v2.7.1+incompatible // indirect
github.com/docker/engine-api v0.4.1-0.20160908232104-4290f40c0566 // indirect
github.com/docker/go-connections v0.2.0 // indirect
github.com/docker/go-units v0.3.0 // indirect
github.com/docker/machine v0.12.2 // indirect
github.com/gorilla/context v1.1.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/pat v1.0.1 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/hashicorp/hcl v0.0.0-20160119202737-578dd9746824 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/kr/pretty v0.0.0-20150520163514-e6ac2fc51e89 // indirect
github.com/kr/text v0.0.0-20150905224508-bb797dc4fb83 // indirect
github.com/kr/pretty v0.2.1 // indirect
github.com/kr/text v0.1.0 // indirect
github.com/lib/pq v1.10.7 // indirect
github.com/magiconair/properties v1.6.1-0.20151221213149-c81f9d71af8f // indirect
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect
github.com/mitchellh/mapstructure v0.0.0-20150717051158-281073eb9eb0 // indirect
github.com/mu-box/microbox-golang-stylish v0.0.0-20160617201242-030019c3e9a9 // indirect
github.com/mu-box/golang-microauth v0.0.0-20230408181947-28e1d1f08c37 // indirect
github.com/mu-box/golang-scribble v0.0.0-20180621225840-336beac0a992 // indirect
github.com/nanobox-io/nanobox-boxfile v0.0.0-20190311153815-2fc39f6df5e0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/runc v0.0.9-0.20160219032739-0107c7fb6cef // indirect
github.com/spf13/cast v0.0.0-20151218135219-ee7b3e035316 // indirect
github.com/spf13/jwalterweatherman v0.0.0-20151231185856-d00654080cdd // indirect
github.com/spf13/pflag v0.0.0-20151218134703-7f60f83a2c81 // indirect
github.com/stretchr/testify v1.8.2 // indirect
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/fsnotify.v1 v1.2.9 // indirect
gopkg.in/yaml.v2 v2.0.0-20151201162745-f7716cbe52ba // indirect
launchpad.net/goyaml v0.0.0-20140305200416-000000000051 // indirect
)
67 changes: 55 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
filippo.io/edwards25519 v1.0.0-rc.1 h1:m0VOOB23frXZvAOK44usCgLWvtsxIoMCTBGJZlpmGfU=
github.com/Azure/go-ansiterm v0.0.0-20160425224613-388960b65524 h1:kyo7Ce1d2RtxZBCp4y/ommREtHPeXUU2bYRJoCgyJX8=
github.com/Azure/go-ansiterm v0.0.0-20160425224613-388960b65524/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
github.com/BurntSushi/toml v0.1.1-0.20160102144748-5c4df71dfe9a h1:xrUE5z0ZdXKgezv7ImgqXATQ+tMal+fdF8fE7SE+gJA=
Expand All @@ -8,6 +9,11 @@ github.com/Sirupsen/logrus v0.8.6-0.20150724014903-11538ee6888f h1:dPVEF6h8MfU+U
github.com/Sirupsen/logrus v0.8.6-0.20150724014903-11538ee6888f/go.mod h1:rmk17hk6i8ZSAJkSDa7nOxamrG+SP4P0mm+DAvExv4U=
github.com/boltdb/bolt v1.1.1-0.20151112151049-0b00effdd7a8 h1:T3gzYI91mHUrZtbc4Kk9rNI8NpQRhEMzVA6QJ3xRcVo=
github.com/boltdb/bolt v1.1.1-0.20151112151049-0b00effdd7a8/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/deckarep/golang-set v1.8.0 h1:sk9/l/KqpunDwP7pSjUg0keiOOLEnOBHzykLrsPppp4=
github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo=
github.com/docker/distribution v2.7.1+incompatible h1:a5mlkVzth6W5A4fOsS3D2EO5BUmsJpcB+cRlLU7cSug=
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
github.com/docker/docker v1.4.2-0.20160819200957-09b929083d34 h1:WlCZW/K82TtICZXcPAQIK6cpGPbXu38vkJ2e01AawXY=
Expand All @@ -22,16 +28,27 @@ github.com/docker/machine v0.12.2 h1:hnEiFuJKxmals/98skBZ5Oq7aWU1Ah3YKMUluQHvtLA
github.com/docker/machine v0.12.2/go.mod h1:I8mPNDeK1uH+JTcUU7X0ZW8KiYz0jyAgNaeSJ1rCfDI=
github.com/fsnotify/fsnotify v1.3.2-0.20160816051541-f12c6236fe7b h1:clQtr7BsnoijdumdhlbbOGglPb1lIAJ3yTPjYOHlKdQ=
github.com/fsnotify/fsnotify v1.3.2-0.20160816051541-f12c6236fe7b/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8=
github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
github.com/gorilla/pat v1.0.1 h1:OeSoj6sffw4/majibAY2BAUsXjNP7fEE+w30KickaL4=
github.com/gorilla/pat v1.0.1/go.mod h1:YeAe0gNeiNT5hoiZRI4yiOky6jVdNvfO2N6Kav/HmxY=
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/hashicorp/hcl v0.0.0-20160119202737-578dd9746824 h1:HVcjV7by+C4mSaxWw8MJO9Ig1pA1OUqwGtE+N901118=
github.com/hashicorp/hcl v0.0.0-20160119202737-578dd9746824/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/jcelliott/lumber v0.0.0-20160324203708-dd349441af25 h1:EFT6MH3igZK/dIVqgGbTqWVvkZ7wJ5iGN03SVtvvdd8=
github.com/jcelliott/lumber v0.0.0-20160324203708-dd349441af25/go.mod h1:sWkGw/wsaHtRsT9zGQ/WyJCotGWG/Anow/9hsAcBWRw=
github.com/kr/pretty v0.0.0-20150520163514-e6ac2fc51e89 h1:Smt4CPhAnATQEGlX/nyqGETX4Tj8bg/7shBT5gH8d7s=
github.com/kr/pretty v0.0.0-20150520163514-e6ac2fc51e89/go.mod h1:Bvhd+E3laJ0AVkG0c9rmtZcnhV0HQ3+c3YxxqTvc/gA=
github.com/kr/text v0.0.0-20150905224508-bb797dc4fb83 h1:zIzxNaBxRxmbPPCgya4J5KccVN23qXA/V75oApRNahI=
github.com/kr/text v0.0.0-20150905224508-bb797dc4fb83/go.mod h1:sjUstKUATFIcff4qlB53Kml0wQPtJVc/3fWrmuUmcfA=
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw=
github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lyondhill/vtclean v0.0.0-20170214195231-ea70112eba8c h1:6szcz6CIKGLFw9fjOlpV123GQBWWzQAXpjvk5xFzkic=
github.com/lyondhill/vtclean v0.0.0-20170214195231-ea70112eba8c/go.mod h1:Ypaq4fyxvYAqjlaZ/6790j8IaX8qgpMk4npyRqR+1lA=
github.com/magiconair/properties v1.6.1-0.20151221213149-c81f9d71af8f h1:i0qIYnnNb+u80O3KUCNlVOFezoKlKg1J96/XzTILLnI=
Expand All @@ -40,26 +57,33 @@ github.com/mitchellh/colorstring v0.0.0-20150228181156-61164e49940b h1:8l4UBG/vL
github.com/mitchellh/colorstring v0.0.0-20150228181156-61164e49940b/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
github.com/mitchellh/go-homedir v0.0.0-20150822234538-56f508a88415 h1:Ym3sGVE9r44t5QLEUo7yPvjAGzk8YqhyyAfizLo/2x4=
github.com/mitchellh/go-homedir v0.0.0-20150822234538-56f508a88415/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
github.com/mitchellh/mapstructure v0.0.0-20150717051158-281073eb9eb0 h1:6VeKv8nNMVKA6qmZLYnPTx0tJ//NbDj1SbubWIikJ9k=
github.com/mitchellh/mapstructure v0.0.0-20150717051158-281073eb9eb0/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
github.com/mu-box/golang-docker-client v0.0.0-20170901184207-d1683dd8c7dd h1:DXzE/1MQQEM0aWb7fJLWxpFm+u03927R29RsTfk+wZI=
github.com/mu-box/golang-docker-client v0.0.0-20170901184207-d1683dd8c7dd/go.mod h1:ovvxNzYWjWiDSQ2FgxRFoBJ01XIKPgUuTKntOr+Trik=
github.com/mu-box/golang-microauth v0.0.0-20230408181947-28e1d1f08c37 h1:8Wu7f6YtQQWe/Xnv6r/cnSa/A1WG8wIvGSjIQRowUUg=
github.com/mu-box/golang-microauth v0.0.0-20230408181947-28e1d1f08c37/go.mod h1:MfxRWd7Z9WjYESyWOGH8y3jILs0J6GDG7d1uii34QzA=
github.com/mu-box/golang-portal-client v0.0.0-20170901184416-350613abb874 h1:K5+2v41aPTLEO7pRy67KahelsmWhBE6wANsEW/2VI54=
github.com/mu-box/golang-portal-client v0.0.0-20170901184416-350613abb874/go.mod h1:qRF+mMqBhKEMhn5mIKa4fzl1F5BaIQoZjwshTdEY31U=
github.com/mu-box/golang-scribble v0.0.0-20180621225840-336beac0a992 h1:WaI+5gj/BFSgv5sbMKdhA/xmkyRjSqVEPWFIBlSJYBI=
github.com/mu-box/golang-scribble v0.0.0-20180621225840-336beac0a992/go.mod h1:gbPmRnjAmYLBREVEdT/v6s8PH4yz1iIabhqU0xA3oiY=
github.com/mu-box/golang-ssh v0.0.0-20160912150335-b42e3bb3b407 h1:G31/TZCJRqdqpF3MbXovPw3tvPsjspHyedH9JTzXgQA=
github.com/mu-box/golang-ssh v0.0.0-20160912150335-b42e3bb3b407/go.mod h1:ZKYr775dsuT81p5GCDxYqwXR4R2UqT825teDzQeob74=
github.com/mu-box/logvac v0.1.1-0.20220117225559-b6e0df9e9085 h1:0RC5MBXtzzAiowXrB4ZQ4F3dHcGO7Ehxzk+YgjjCK18=
github.com/mu-box/logvac v0.1.1-0.20220117225559-b6e0df9e9085/go.mod h1:tNLMzpa7IdhIaBM/EbbOHIK1zHaMbcNpaeJKsytMKhk=
github.com/mu-box/microbox-boxfile v0.0.0-20170803212006-213ff24b93f4 h1:KqhKDSgc/1Ann/nfHwC3LBiAuD3kLhfAJqvwDxyaqxg=
github.com/mu-box/microbox-boxfile v0.0.0-20170803212006-213ff24b93f4/go.mod h1:3AJhyEVx57FEeR+BowCAoLh1Jh00IfW6lZc5nKi4XlE=
github.com/mu-box/microbox-golang-stylish v0.0.0-20160617201242-030019c3e9a9/go.mod h1:pxocGM+Ev1fIoxflQEIufq90i5KQkW0ULpA6/0mcujQ=
github.com/mu-box/mist v1.1.1-0.20220117224314-b4d1190bc7a4 h1:3mdJfOpDVB8D2yKaeeSX3fNxqfqA3bQ9ioEKI9tx6Ws=
github.com/mu-box/mist v1.1.1-0.20220117224314-b4d1190bc7a4/go.mod h1:HWGxRt5KMS8Mt892z5KU4iClTrfWsLXWjTZLm/AigHg=
github.com/nanobox-io/nanobox-boxfile v0.0.0-20190311153815-2fc39f6df5e0 h1:KeyabIiUAFi+iiCc7S4nBUHb9HWzkJ3g6CET/bb0eVQ=
github.com/nanobox-io/nanobox-boxfile v0.0.0-20190311153815-2fc39f6df5e0/go.mod h1:Egtm+HAABvNGUGAmXzRI8LlMHrGdAwfiRK6i+zk9vdw=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/runc v0.0.9-0.20160219032739-0107c7fb6cef h1:C9pokjJ4MRX4lMZTxfW8NAcPCohb5pONusRERqEC/Cs=
github.com/opencontainers/runc v0.0.9-0.20160219032739-0107c7fb6cef/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/spf13/cast v0.0.0-20151218135219-ee7b3e035316 h1:ewDvguiDYTmhbP+hILV+IplQQM88stMcBcjFOPV7lSE=
github.com/spf13/cast v0.0.0-20151218135219-ee7b3e035316/go.mod h1:r2rcYCSwa1IExKTDiTfzaxqT2FNHs8hODu4LnUfgKEg=
github.com/spf13/cobra v0.0.0-20160117030938-8e91712f174c h1:/ODmDm3R+Y64VFQ1uI4byBgBdkqSVNmMYFoSjk2ZEDE=
Expand All @@ -70,15 +94,34 @@ github.com/spf13/pflag v0.0.0-20151218134703-7f60f83a2c81 h1:e8OMOPK+iXlzdnq5GOt
github.com/spf13/pflag v0.0.0-20151218134703-7f60f83a2c81/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/viper v0.0.0-20160111150723-a212099cbe6f h1:T1rEZOdhsGHqU9MsaeM++g5Q89YaqJBFmA0Smj9bj6E=
github.com/spf13/viper v0.0.0-20160111150723-a212099cbe6f/go.mod h1:A8kyI5cUJhb8N+3pkfONlcEcZbueH6nhAm0Fq7SrnBM=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/timehop/go-mixpanel v0.0.0-20150630220933-9b81eaf1f33e h1:ZPjKMUFz42BgHCCNLiJrcSn9AR7yHy9w+9T9tzabLCs=
github.com/timehop/go-mixpanel v0.0.0-20150630220933-9b81eaf1f33e/go.mod h1:wBJNkxs2qJ5kDg7128ujYvH0oDRcGBJ0ijXhlyMvymo=
golang.org/x/crypto v0.0.0-20160912150327-e311231e8319 h1:omlN+qS1UZ1L8O+V8NDVP3xLbdNZNiQhRmsncKhLTxk=
golang.org/x/crypto v0.0.0-20160912150327-e311231e8319/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/net v0.0.0-20170824174428-57efc9c3d9f9 h1:5dWUD2H++BOa8+DJzqUYOpTtpAWE6OZZJWhf1BgJR48=
golang.org/x/net v0.0.0-20170824174428-57efc9c3d9f9/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/sys v0.0.0-20170322234810-8fd966b47dbd h1:JY0hXVDqgct7/fqe7CkIIBT8Vm6oGUSyu/zmdOWz/3w=
golang.org/x/sys v0.0.0-20170322234810-8fd966b47dbd/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
go.step.sm/crypto v0.16.1 h1:4mnZk21cSxyMGxsEpJwZKKvJvDu1PN09UVrWWFNUBdk=
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 h1:0es+/5331RGQPcXlMfP+WrnIIS6dNnNRe0WB02W0F4M=
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 h1:CIJ76btIcR3eFI5EgSo6k1qKw9KJexJuRLI9G7Hp5wE=
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210915083310-ed5796bab164 h1:7ZDGnxgHAMw7thfC5bEos0RDAccZKxioiWBhfIe+tvw=
golang.org/x/sys v0.0.0-20210915083310-ed5796bab164/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/fsnotify.v1 v1.2.9 h1:sQ4u2nqc93srqGq6uKE2mzSxC2XJF34qBut5caJJUQw=
gopkg.in/fsnotify.v1 v1.2.9/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/yaml.v2 v2.0.0-20151201162745-f7716cbe52ba h1:zs5kJPNmBQxScpRIdp+2eZySRHFWheLSbXfME4zAxgw=
gopkg.in/yaml.v2 v2.0.0-20151201162745-f7716cbe52ba/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
launchpad.net/goyaml v0.0.0-20140305200416-000000000051 h1:pgtOxpWGtZwl5VEGtXB3s+VPsO3QzsZPg4/AS0Ag9HI=
launchpad.net/goyaml v0.0.0-20140305200416-000000000051/go.mod h1:HivH2TsqnIPviNUySFrCE+pbgbJCjrnMj2QH74o4y+w=
2 changes: 1 addition & 1 deletion util/provider/dockermachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (machine DockerMachine) Create() error {
"--driver",
"virtualbox",
"--virtualbox-boot2docker-url",
"https://d1ormdui8qdvue.cloudfront.net/boot2docker/v1/boot2docker.iso",
"https://s3.amazonaws.com/tools.microbox.cloud/boot2docker/v1/boot2docker.iso",
"--engine-env",
fmt.Sprintf("HTTP_PROXY=%s", os.Getenv("HTTP_PROXY")),
"--engine-env",
Expand Down

20 comments on commit a80e7dd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ misspell failed (.)

util/provider/dockermachine.go:93:26: "exportfs" is a misspelling of "exports"
util/provider/dockermachine.go:94:40: "exportfs" is a misspelling of "exports"
util/provider/dockermachine.go:95:40: "exportfs" is a misspelling of "exports"
util/provider/share/share_linux.go:296:21: "exportfs" is a misspelling of "exports"

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ gofmt failed (.)

commands/deploy.go
 	}{}
 )
 
-//
 func init() {
 	DeployCmd.Flags().BoolVarP(&deployCmdFlags.skipCompile, "skip-compile", "", false, "skip compiling the app")
 	DeployCmd.Flags().BoolVarP(&deployCmdFlags.force, "force", "", false, "force the deploy even if you have used this build on a previous deploy")
commands/dev/stop.go
 	steps.Build("dev stop", stopCheck, stopFn)
 }
 
-//
 // stopFn ...
 func stopFn(ccmd *cobra.Command, args []string) {
 	// TODO: check the app and return some message
commands/dns.go
 	}
 )
 
-//
 func init() {
 	DnsCmd.AddCommand(dns.AddCmd)
 	DnsCmd.AddCommand(dns.RemoveCmd)
commands/env.go
 	}
 )
 
-//
 func init() {
 	// hidden subcommands
 	EnvCmd.AddCommand(env.ServerCmd)
commands/env/server.go
 	}
 )
 
-//
 func init() {
 	ServerCmd.AddCommand(ServerStartCmd)
 	ServerCmd.AddCommand(ServerStopCmd)
commands/evar.go
 	}
 )
 
-//
 func init() {
 	EvarCmd.AddCommand(evar.AddCmd)
 	EvarCmd.AddCommand(evar.LoadCmd)
commands/login.go
 	}{}
 )
 
-//
 func init() {
 	LoginCmd.Flags().StringVarP(&loginCmdFlags.username, "username", "u", "", "username")
 	LoginCmd.Flags().StringVarP(&loginCmdFlags.password, "password", "p", "", "password")
commands/remote.go
 	}
 )
 
-//
 func init() {
 	RemoteCmd.AddCommand(RemoteAddCmd)
 	RemoteCmd.AddCommand(RemoteListCmd)
commands/tunnel.go
 	}{}
 )
 
-//
 func init() {
 	TunnelCmd.Flags().StringVarP(&portMap, "port", "p", "", "Specify a local[:destination] port to listen on and connect to.")
 }
generators/router/router.go
 	"github.com/mu-box/microbox/models"
 )
 
-//
 func loadBoxfile(appModel *models.App) boxfile.Boxfile {
 	return boxfile.New([]byte(appModel.DeployedBoxfile))
 }
generators/router/routes.go
 
 // buildRoutes ...
 //
-// Route struct {
-// 	// defines match characteristics
-// 	SubDomain string `json:"subdomain"` // subdomain to match on - "admin"
-// 	Domain    string `json:"domain"`    // domain to match on - "myapp.com"
-// 	Path      string `json:"path"`      // route to match on - "/admin"
-// 	// defines actions
-// 	Targets []string `json:"targets"` // ips of servers - ["http://127.0.0.1:8080/app1","http://127.0.0.2"] (optional)
-// 	FwdPath string   `json:"fwdpath"` // path to forward to targets - "/goadmin" incoming req: test.com/admin -> 127.0.0.1/goadmin (optional)
-// 	Page    string   `json:"page"`    // page to serve instead of routing to targets - "<HTML>We are fixing it</HTML>" (optional)
-// }
+//	Route struct {
+//		// defines match characteristics
+//		SubDomain string `json:"subdomain"` // subdomain to match on - "admin"
+//		Domain    string `json:"domain"`    // domain to match on - "myapp.com"
+//		Path      string `json:"path"`      // route to match on - "/admin"
+//		// defines actions
+//		Targets []string `json:"targets"` // ips of servers - ["http://127.0.0.1:8080/app1","http://127.0.0.2"] (optional)
+//		FwdPath string   `json:"fwdpath"` // path to forward to targets - "/goadmin" incoming req: test.com/admin -> 127.0.0.1/goadmin (optional)
+//		Page    string   `json:"page"`    // page to serve instead of routing to targets - "<HTML>We are fixing it</HTML>" (optional)
+//	}
 func buildComponentRoutes(boxfile boxfile.Boxfile, component *models.Component) []portal.Route {
 	portalRoutes := []portal.Route{}
 	boxRoutes, ok := boxfile.Value("routes").([]string)
processors/clean.go
 	"github.com/mu-box/microbox/util/locker"
 )
 
-//
 func Clean(envModels []*models.Env) error {
 	locker.GlobalLock()
 	defer locker.GlobalUnlock()
processors/code/setup.go
 	"github.com/mu-box/microbox/util/hookit"
 )
 
-//
 func Setup(appModel *models.App, componentModel *models.Component, warehouseConfig WarehouseConfig) error {
 	// generate the missing component data
 	if err := componentModel.Generate(appModel, "code"); err != nil {
processors/deploy.go
 	"github.com/mu-box/microbox/util/odin"
 )
 
-//
 func Deploy(envModel *models.Env, deployConfig DeployConfig) error {
 
 	appID := deployConfig.App
processors/platform/portal.go
 	return nil
 }
 
-//
 func portalClient(appModel *models.App) portal.PortalClient {
 	return portal.New(appModel.LocalIPs["env"]+":8443", "123")
 }
util/display/characters.go
 
 package display
 
-//  ...
+// ...
 var (
 	TaskSpinner  = []string{`⣷`, `⣯`, `⣟`, `⡿`, `⢿`, `⣻`, `⣽`, `⣾`}
 	TaskComplete = `✓`
util/provider/dockermachine.go
 	return nil
 }
 
-//
 func (machine DockerMachine) RemoveEnvDir(id string) error {
 	if id == "" {
 		return fmt.Errorf("invalid env id")
util/provider/native.go
 	return cmd.CombinedOutput()
 }
 
-//
 func (native Native) RemoveEnvDir(id string) error {
 	if id == "" {
 		return nil

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ gocyclo failed (.)

13 function(s) exceeding a complexity of 15

Show Detail
flag provided but not defined: -total
Calculate cyclomatic complexities of Go functions.
Usage:
    gocyclo [flags] <Go file or directory> ...

Flags:
    -over N               show functions with complexity > N only and
                          return exit code 1 if the set is non-empty
    -top N                show the top N most complex functions only
    -avg, -avg-short      show the average complexity over all functions;
                          the short option prints the value without a label
    -ignore REGEX         exclude files matching the given regular expression

The output fields for each line are:
<complexity> <package> <function> <file:line:column>

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ goimports failed (.)

commands/deploy.go
 	}{}
 )
 
-//
 func init() {
 	DeployCmd.Flags().BoolVarP(&deployCmdFlags.skipCompile, "skip-compile", "", false, "skip compiling the app")
 	DeployCmd.Flags().BoolVarP(&deployCmdFlags.force, "force", "", false, "force the deploy even if you have used this build on a previous deploy")
commands/dev/stop.go
 	steps.Build("dev stop", stopCheck, stopFn)
 }
 
-//
 // stopFn ...
 func stopFn(ccmd *cobra.Command, args []string) {
 	// TODO: check the app and return some message
commands/dns.go
 	}
 )
 
-//
 func init() {
 	DnsCmd.AddCommand(dns.AddCmd)
 	DnsCmd.AddCommand(dns.RemoveCmd)
commands/env.go
 	}
 )
 
-//
 func init() {
 	// hidden subcommands
 	EnvCmd.AddCommand(env.ServerCmd)
commands/env/server.go
 	}
 )
 
-//
 func init() {
 	ServerCmd.AddCommand(ServerStartCmd)
 	ServerCmd.AddCommand(ServerStopCmd)
commands/evar.go
 	}
 )
 
-//
 func init() {
 	EvarCmd.AddCommand(evar.AddCmd)
 	EvarCmd.AddCommand(evar.LoadCmd)
commands/login.go
 	}{}
 )
 
-//
 func init() {
 	LoginCmd.Flags().StringVarP(&loginCmdFlags.username, "username", "u", "", "username")
 	LoginCmd.Flags().StringVarP(&loginCmdFlags.password, "password", "p", "", "password")
commands/remote.go
 	}
 )
 
-//
 func init() {
 	RemoteCmd.AddCommand(RemoteAddCmd)
 	RemoteCmd.AddCommand(RemoteListCmd)
commands/tunnel.go
 	}{}
 )
 
-//
 func init() {
 	TunnelCmd.Flags().StringVarP(&portMap, "port", "p", "", "Specify a local[:destination] port to listen on and connect to.")
 }
generators/router/router.go
 	"github.com/mu-box/microbox/models"
 )
 
-//
 func loadBoxfile(appModel *models.App) boxfile.Boxfile {
 	return boxfile.New([]byte(appModel.DeployedBoxfile))
 }
generators/router/routes.go
 
 // buildRoutes ...
 //
-// Route struct {
-// 	// defines match characteristics
-// 	SubDomain string `json:"subdomain"` // subdomain to match on - "admin"
-// 	Domain    string `json:"domain"`    // domain to match on - "myapp.com"
-// 	Path      string `json:"path"`      // route to match on - "/admin"
-// 	// defines actions
-// 	Targets []string `json:"targets"` // ips of servers - ["http://127.0.0.1:8080/app1","http://127.0.0.2"] (optional)
-// 	FwdPath string   `json:"fwdpath"` // path to forward to targets - "/goadmin" incoming req: test.com/admin -> 127.0.0.1/goadmin (optional)
-// 	Page    string   `json:"page"`    // page to serve instead of routing to targets - "<HTML>We are fixing it</HTML>" (optional)
-// }
+//	Route struct {
+//		// defines match characteristics
+//		SubDomain string `json:"subdomain"` // subdomain to match on - "admin"
+//		Domain    string `json:"domain"`    // domain to match on - "myapp.com"
+//		Path      string `json:"path"`      // route to match on - "/admin"
+//		// defines actions
+//		Targets []string `json:"targets"` // ips of servers - ["http://127.0.0.1:8080/app1","http://127.0.0.2"] (optional)
+//		FwdPath string   `json:"fwdpath"` // path to forward to targets - "/goadmin" incoming req: test.com/admin -> 127.0.0.1/goadmin (optional)
+//		Page    string   `json:"page"`    // page to serve instead of routing to targets - "<HTML>We are fixing it</HTML>" (optional)
+//	}
 func buildComponentRoutes(boxfile boxfile.Boxfile, component *models.Component) []portal.Route {
 	portalRoutes := []portal.Route{}
 	boxRoutes, ok := boxfile.Value("routes").([]string)
processors/clean.go
 	"github.com/mu-box/microbox/util/locker"
 )
 
-//
 func Clean(envModels []*models.Env) error {
 	locker.GlobalLock()
 	defer locker.GlobalUnlock()
processors/code/setup.go
 	"github.com/mu-box/microbox/util/hookit"
 )
 
-//
 func Setup(appModel *models.App, componentModel *models.Component, warehouseConfig WarehouseConfig) error {
 	// generate the missing component data
 	if err := componentModel.Generate(appModel, "code"); err != nil {
processors/deploy.go
 	"github.com/mu-box/microbox/util/odin"
 )
 
-//
 func Deploy(envModel *models.Env, deployConfig DeployConfig) error {
 
 	appID := deployConfig.App
processors/platform/portal.go
 	return nil
 }
 
-//
 func portalClient(appModel *models.App) portal.PortalClient {
 	return portal.New(appModel.LocalIPs["env"]+":8443", "123")
 }
util/display/characters.go
 
 package display
 
-//  ...
+// ...
 var (
 	TaskSpinner  = []string{`⣷`, `⣯`, `⣟`, `⡿`, `⢿`, `⣻`, `⣽`, `⣾`}
 	TaskComplete = `✓`
util/provider/dockermachine.go
 	return nil
 }
 
-//
 func (machine DockerMachine) RemoveEnvDir(id string) error {
 	if id == "" {
 		return fmt.Errorf("invalid env id")
util/provider/native.go
 	return cmd.CombinedOutput()
 }
 
-//
 func (native Native) RemoveEnvDir(id string) error {
 	if id == "" {
 		return nil

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ ineffassign failed (.)

ineffassign: 2 errors during loading
	Use -buildvcs=false to disable VCS stamping.
-: error obtaining VCS status: exit status 128

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ errcheck failed (.)

error: failed to check packages: errors while loading package github.com/mu-box/microbox: [-: error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.]

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ gosec failed (.)

2023/04/09 02:46:22 internal error: package "encoding/json" without types was imported from "command-line-arguments"
Show Detail

Code Reference

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ shadow failed (.)

commands/steps/run.go:17:4: declaration of "step" shadows declaration at line 13
updater/main.go:61:12: declaration of "err" shadows declaration at line 21
util/exec.go:54:5: declaration of "err" shadows declaration at line 40
util/provider/native.go:140:16: declaration of "err" shadows declaration at line 122
util/provider/share/share_linux.go:72:3: declaration of "err" shadows declaration at line 61
util/provider/share/share_linux.go:124:3: declaration of "err" shadows declaration at line 113

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ staticcheck failed (.)

commands/build.go:52:9: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
commands/configure.go:91:2: redundant return statement (S1023)
commands/configure.go:97:2: var prettyJson should be prettyJSON (ST1003)
commands/configure.go:99:2: redundant return statement (S1023)
commands/dns.go:12:2: var DnsCmd should be DNSCmd (ST1003)
commands/evar/load.go:5:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
commands/inspect.go:12:2: type anything is unused (U1000)
commands/inspect.go:32:2: default case should be first or last in switch statement (ST1015)
commands/log.go:21:2: var logStart is unused (U1000)
commands/log.go:22:2: var logEnd is unused (U1000)
commands/log.go:23:2: var logLimit is unused (U1000)
commands/server/server.go:28:7: const name is unused (U1000)
commands/server/svc_unix.go:7:2: redundant return statement (S1023)
generators/hooks/build/user.go:8:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
generators/hooks/build/user.go:104:6: x509.IsEncryptedPEMBlock has been deprecated since Go 1.16 because it shouldn't be used: Legacy PEM encryption as specified in RFC 1423 is insecure by design. Since it does not authenticate the ciphertext, it is vulnerable to padding oracle attacks that can let an attacker recover the plaintext.  (SA1019)
generators/hooks/build/user.go:120:16: x509.DecryptPEMBlock has been deprecated since Go 1.16 because it shouldn't be used: Legacy PEM encryption as specified in RFC 1423 is insecure by design. Since it does not authenticate the ciphertext, it is vulnerable to padding oracle attacks that can let an attacker recover the plaintext.  (SA1019)
generators/hooks/code/configure.go:29:3: struct field DnsEntries should be DNSEntries (ST1003)
main.go:140:7: should omit comparison to bool constant, can be simplified to found (S1002)
main.go:146:7: should omit comparison to bool constant, can be simplified to found (S1002)
models/config.go:27:2: struct field SshKey should be SSHKey (ST1003)
models/config.go:28:2: struct field SshEncryptedKeys should be SSHEncryptedKeys (ST1003)
processors/code/build.go:144:9: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
processors/code/code.go:60:9: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
processors/component/clean.go:76:3: should use 'return !strings.Contains(err.Error(), "host is down")' instead of 'if strings.Contains(err.Error(), "host is down") { return false }; return true' (S1008)
processors/env/destroy.go:49:2: empty branch (SA9003)
processors/env/unmount.go:73:6: func mounted is unused (U1000)
processors/log/log.go:8:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
processors/log/log.go:154:25: os.Kill cannot be trapped (did you mean syscall.SIGTERM?) (SA1016)
processors/platform/mist.go:41:25: os.Kill cannot be trapped (did you mean syscall.SIGTERM?) (SA1016)
processors/provider/bridge/bridge.go:87:5: should use 'return i.Flags&net.FlagUp == net.FlagUp' instead of 'if i.Flags&net.FlagUp != net.FlagUp { return false }; return true' (S1008)
processors/provider/bridge/setup.go:7:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
processors/provider/stop.go:22:2: empty branch (SA9003)
updater/main.go:15:1: comment on exported var VERSION should be of the form "VERSION ..." (ST1022)
util/config/dirs.go:119:16: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
util/config/vars.go:23:9: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
util/display/command_error.go:75:19: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
util/display/display.go:13:2: "golang.org/x/crypto/ssh/terminal" is deprecated: this package moved to golang.org/x/term.  (SA1019)
util/display/docker_percent.go:152:3: empty branch (SA9003)
util/display/docker_percent.go:152:6: HasPrefix doesn't have side effects and its return value is ignored (SA4017)
util/display/logs.go:68:80: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
util/display/logs.go:71:2: redundant return statement (S1023)
util/display/logs.go:110:80: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
util/display/logs.go:114:2: redundant return statement (S1023)
util/display/messages.go:10:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:30:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:43:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:55:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:120:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:130:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:141:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:152:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:163:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:176:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:187:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:229:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:246:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:258:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:268:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:281:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:291:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:298:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:338:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:349:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:359:24: unnecessary use of fmt.Sprintf (S1039)
util/display/prefix.go:47:5: should omit comparison to bool constant, can be simplified to p.firstLine (S1002)
util/display/prefix.go:62:13: should omit comparison to bool constant, can be simplified to p.escapeSeq (S1002)
util/display/prefix.go:69:20: should omit comparison to bool constant, can be simplified to !p.newLine (S1002)
util/display/prefix.go:71:27: should omit comparison to bool constant, can be simplified to !p.newLine (S1002)
util/display/prefix.go:85:7: should omit comparison to bool constant, can be simplified to p.newLine (S1002)
util/display/prompt_unix.go:10:2: "golang.org/x/crypto/ssh/terminal" is deprecated: this package moved to golang.org/x/term.  (SA1019)
util/display/summary.go:19:18: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007)
util/dns/dns.go:7:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/odin/odin.go:9:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/provider/bridge/bridge.go:11:1: comment on exported type Response should be of the form "Response ..." (with optional leading article) (ST1021)
util/provider/dockermachine.go:39:39: error should be returned as the last argument (ST1008)
util/provider/dockermachine.go:496:30: methods on the same type should have the same receiver name (seen 1x "dockermachine", 39x "machine") (ST1016)
util/provider/dockermachine.go:1009:6: func dockerMachineURL is unused (U1000)
util/provider/dockermachine_mount.go:54:3: should use 'return !strings.Contains(string(output), "No such file or directory")' instead of 'if strings.Contains(string(output), "No such file or directory") { return false }; return true' (S1008)
util/provider/dockermachine_mount.go:311:6: func setupCoreUtilsScript is unused (U1000)
util/provider/native.go:28:31: error should be returned as the last argument (ST1008)
util/provider/provider.go:43:2: var verbose is unused (U1000)
util/provider/provider.go:57:15: error should be returned as the last argument (ST1008)
util/provider/share/share_linux.go:7:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/provider/share/share_unix.go:39:5: var sudoGid should be sudoGID (ST1003)
util/service/create_linux.go:5:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/update/run.go:5:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/update/update.go:6:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/util.go:7:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/watch/notify_internal_test.go:4:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/watch/watch.go:5:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/watch/watch.go:22:5: var ctimeAvailable is unused (U1000)
util/watch/watch.go:127:6: func ctimeCheck is unused (U1000)
util/watch/watch.go:144:6: func ctime is unused (U1000)
util/watch/watch.go:162:2: should replace loop with ignoreFile = append(ignoreFile, stringFields...) (S1011)

Checks Document

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ Failure Summary

  • misspell: fail
  • fmt: fail
  • vet: success!
  • cyclo: fail
  • imports: fail
  • ineffassign: fail
  • errcheck: fail
  • sec: fail
  • shadow: fail
  • staticcheck: fail

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ misspell failed (.)

util/provider/dockermachine.go:93:26: "exportfs" is a misspelling of "exports"
util/provider/dockermachine.go:94:40: "exportfs" is a misspelling of "exports"
util/provider/dockermachine.go:95:40: "exportfs" is a misspelling of "exports"
util/provider/share/share_linux.go:296:21: "exportfs" is a misspelling of "exports"

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ gofmt failed (.)

commands/deploy.go
 	}{}
 )
 
-//
 func init() {
 	DeployCmd.Flags().BoolVarP(&deployCmdFlags.skipCompile, "skip-compile", "", false, "skip compiling the app")
 	DeployCmd.Flags().BoolVarP(&deployCmdFlags.force, "force", "", false, "force the deploy even if you have used this build on a previous deploy")
commands/dev/stop.go
 	steps.Build("dev stop", stopCheck, stopFn)
 }
 
-//
 // stopFn ...
 func stopFn(ccmd *cobra.Command, args []string) {
 	// TODO: check the app and return some message
commands/dns.go
 	}
 )
 
-//
 func init() {
 	DnsCmd.AddCommand(dns.AddCmd)
 	DnsCmd.AddCommand(dns.RemoveCmd)
commands/env.go
 	}
 )
 
-//
 func init() {
 	// hidden subcommands
 	EnvCmd.AddCommand(env.ServerCmd)
commands/env/server.go
 	}
 )
 
-//
 func init() {
 	ServerCmd.AddCommand(ServerStartCmd)
 	ServerCmd.AddCommand(ServerStopCmd)
commands/evar.go
 	}
 )
 
-//
 func init() {
 	EvarCmd.AddCommand(evar.AddCmd)
 	EvarCmd.AddCommand(evar.LoadCmd)
commands/login.go
 	}{}
 )
 
-//
 func init() {
 	LoginCmd.Flags().StringVarP(&loginCmdFlags.username, "username", "u", "", "username")
 	LoginCmd.Flags().StringVarP(&loginCmdFlags.password, "password", "p", "", "password")
commands/remote.go
 	}
 )
 
-//
 func init() {
 	RemoteCmd.AddCommand(RemoteAddCmd)
 	RemoteCmd.AddCommand(RemoteListCmd)
commands/tunnel.go
 	}{}
 )
 
-//
 func init() {
 	TunnelCmd.Flags().StringVarP(&portMap, "port", "p", "", "Specify a local[:destination] port to listen on and connect to.")
 }
generators/router/router.go
 	"github.com/mu-box/microbox/models"
 )
 
-//
 func loadBoxfile(appModel *models.App) boxfile.Boxfile {
 	return boxfile.New([]byte(appModel.DeployedBoxfile))
 }
generators/router/routes.go
 
 // buildRoutes ...
 //
-// Route struct {
-// 	// defines match characteristics
-// 	SubDomain string `json:"subdomain"` // subdomain to match on - "admin"
-// 	Domain    string `json:"domain"`    // domain to match on - "myapp.com"
-// 	Path      string `json:"path"`      // route to match on - "/admin"
-// 	// defines actions
-// 	Targets []string `json:"targets"` // ips of servers - ["http://127.0.0.1:8080/app1","http://127.0.0.2"] (optional)
-// 	FwdPath string   `json:"fwdpath"` // path to forward to targets - "/goadmin" incoming req: test.com/admin -> 127.0.0.1/goadmin (optional)
-// 	Page    string   `json:"page"`    // page to serve instead of routing to targets - "<HTML>We are fixing it</HTML>" (optional)
-// }
+//	Route struct {
+//		// defines match characteristics
+//		SubDomain string `json:"subdomain"` // subdomain to match on - "admin"
+//		Domain    string `json:"domain"`    // domain to match on - "myapp.com"
+//		Path      string `json:"path"`      // route to match on - "/admin"
+//		// defines actions
+//		Targets []string `json:"targets"` // ips of servers - ["http://127.0.0.1:8080/app1","http://127.0.0.2"] (optional)
+//		FwdPath string   `json:"fwdpath"` // path to forward to targets - "/goadmin" incoming req: test.com/admin -> 127.0.0.1/goadmin (optional)
+//		Page    string   `json:"page"`    // page to serve instead of routing to targets - "<HTML>We are fixing it</HTML>" (optional)
+//	}
 func buildComponentRoutes(boxfile boxfile.Boxfile, component *models.Component) []portal.Route {
 	portalRoutes := []portal.Route{}
 	boxRoutes, ok := boxfile.Value("routes").([]string)
processors/clean.go
 	"github.com/mu-box/microbox/util/locker"
 )
 
-//
 func Clean(envModels []*models.Env) error {
 	locker.GlobalLock()
 	defer locker.GlobalUnlock()
processors/code/setup.go
 	"github.com/mu-box/microbox/util/hookit"
 )
 
-//
 func Setup(appModel *models.App, componentModel *models.Component, warehouseConfig WarehouseConfig) error {
 	// generate the missing component data
 	if err := componentModel.Generate(appModel, "code"); err != nil {
processors/deploy.go
 	"github.com/mu-box/microbox/util/odin"
 )
 
-//
 func Deploy(envModel *models.Env, deployConfig DeployConfig) error {
 
 	appID := deployConfig.App
processors/platform/portal.go
 	return nil
 }
 
-//
 func portalClient(appModel *models.App) portal.PortalClient {
 	return portal.New(appModel.LocalIPs["env"]+":8443", "123")
 }
util/display/characters.go
 
 package display
 
-//  ...
+// ...
 var (
 	TaskSpinner  = []string{`⣷`, `⣯`, `⣟`, `⡿`, `⢿`, `⣻`, `⣽`, `⣾`}
 	TaskComplete = `✓`
util/provider/dockermachine.go
 	return nil
 }
 
-//
 func (machine DockerMachine) RemoveEnvDir(id string) error {
 	if id == "" {
 		return fmt.Errorf("invalid env id")
util/provider/native.go
 	return cmd.CombinedOutput()
 }
 
-//
 func (native Native) RemoveEnvDir(id string) error {
 	if id == "" {
 		return nil

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ gocyclo failed (.)

6 function(s) exceeding a complexity of 15

Show Detail
27 odin doRequest util/odin/odin.go:326:1
25 processors ConfigureSet processors/configure_set.go:10:1
21 main main main.go:33:1
19 env Setup processors/env/setup.go:21:1
18 models (*Config).makeValid models/config.go:48:1
16 util OsArchDetect util/os.go:85:1
Average: 3.4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ goimports failed (.)

commands/deploy.go
 	}{}
 )
 
-//
 func init() {
 	DeployCmd.Flags().BoolVarP(&deployCmdFlags.skipCompile, "skip-compile", "", false, "skip compiling the app")
 	DeployCmd.Flags().BoolVarP(&deployCmdFlags.force, "force", "", false, "force the deploy even if you have used this build on a previous deploy")
commands/dev/stop.go
 	steps.Build("dev stop", stopCheck, stopFn)
 }
 
-//
 // stopFn ...
 func stopFn(ccmd *cobra.Command, args []string) {
 	// TODO: check the app and return some message
commands/dns.go
 	}
 )
 
-//
 func init() {
 	DnsCmd.AddCommand(dns.AddCmd)
 	DnsCmd.AddCommand(dns.RemoveCmd)
commands/env.go
 	}
 )
 
-//
 func init() {
 	// hidden subcommands
 	EnvCmd.AddCommand(env.ServerCmd)
commands/env/server.go
 	}
 )
 
-//
 func init() {
 	ServerCmd.AddCommand(ServerStartCmd)
 	ServerCmd.AddCommand(ServerStopCmd)
commands/evar.go
 	}
 )
 
-//
 func init() {
 	EvarCmd.AddCommand(evar.AddCmd)
 	EvarCmd.AddCommand(evar.LoadCmd)
commands/login.go
 	}{}
 )
 
-//
 func init() {
 	LoginCmd.Flags().StringVarP(&loginCmdFlags.username, "username", "u", "", "username")
 	LoginCmd.Flags().StringVarP(&loginCmdFlags.password, "password", "p", "", "password")
commands/remote.go
 	}
 )
 
-//
 func init() {
 	RemoteCmd.AddCommand(RemoteAddCmd)
 	RemoteCmd.AddCommand(RemoteListCmd)
commands/tunnel.go
 	}{}
 )
 
-//
 func init() {
 	TunnelCmd.Flags().StringVarP(&portMap, "port", "p", "", "Specify a local[:destination] port to listen on and connect to.")
 }
generators/router/router.go
 	"github.com/mu-box/microbox/models"
 )
 
-//
 func loadBoxfile(appModel *models.App) boxfile.Boxfile {
 	return boxfile.New([]byte(appModel.DeployedBoxfile))
 }
generators/router/routes.go
 
 // buildRoutes ...
 //
-// Route struct {
-// 	// defines match characteristics
-// 	SubDomain string `json:"subdomain"` // subdomain to match on - "admin"
-// 	Domain    string `json:"domain"`    // domain to match on - "myapp.com"
-// 	Path      string `json:"path"`      // route to match on - "/admin"
-// 	// defines actions
-// 	Targets []string `json:"targets"` // ips of servers - ["http://127.0.0.1:8080/app1","http://127.0.0.2"] (optional)
-// 	FwdPath string   `json:"fwdpath"` // path to forward to targets - "/goadmin" incoming req: test.com/admin -> 127.0.0.1/goadmin (optional)
-// 	Page    string   `json:"page"`    // page to serve instead of routing to targets - "<HTML>We are fixing it</HTML>" (optional)
-// }
+//	Route struct {
+//		// defines match characteristics
+//		SubDomain string `json:"subdomain"` // subdomain to match on - "admin"
+//		Domain    string `json:"domain"`    // domain to match on - "myapp.com"
+//		Path      string `json:"path"`      // route to match on - "/admin"
+//		// defines actions
+//		Targets []string `json:"targets"` // ips of servers - ["http://127.0.0.1:8080/app1","http://127.0.0.2"] (optional)
+//		FwdPath string   `json:"fwdpath"` // path to forward to targets - "/goadmin" incoming req: test.com/admin -> 127.0.0.1/goadmin (optional)
+//		Page    string   `json:"page"`    // page to serve instead of routing to targets - "<HTML>We are fixing it</HTML>" (optional)
+//	}
 func buildComponentRoutes(boxfile boxfile.Boxfile, component *models.Component) []portal.Route {
 	portalRoutes := []portal.Route{}
 	boxRoutes, ok := boxfile.Value("routes").([]string)
processors/clean.go
 	"github.com/mu-box/microbox/util/locker"
 )
 
-//
 func Clean(envModels []*models.Env) error {
 	locker.GlobalLock()
 	defer locker.GlobalUnlock()
processors/code/setup.go
 	"github.com/mu-box/microbox/util/hookit"
 )
 
-//
 func Setup(appModel *models.App, componentModel *models.Component, warehouseConfig WarehouseConfig) error {
 	// generate the missing component data
 	if err := componentModel.Generate(appModel, "code"); err != nil {
processors/deploy.go
 	"github.com/mu-box/microbox/util/odin"
 )
 
-//
 func Deploy(envModel *models.Env, deployConfig DeployConfig) error {
 
 	appID := deployConfig.App
processors/platform/portal.go
 	return nil
 }
 
-//
 func portalClient(appModel *models.App) portal.PortalClient {
 	return portal.New(appModel.LocalIPs["env"]+":8443", "123")
 }
util/display/characters.go
 
 package display
 
-//  ...
+// ...
 var (
 	TaskSpinner  = []string{`⣷`, `⣯`, `⣟`, `⡿`, `⢿`, `⣻`, `⣽`, `⣾`}
 	TaskComplete = `✓`
util/provider/dockermachine.go
 	return nil
 }
 
-//
 func (machine DockerMachine) RemoveEnvDir(id string) error {
 	if id == "" {
 		return fmt.Errorf("invalid env id")
util/provider/native.go
 	return cmd.CombinedOutput()
 }
 
-//
 func (native Native) RemoveEnvDir(id string) error {
 	if id == "" {
 		return nil

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ ineffassign failed (.)

ineffassign: 2 errors during loading
	Use -buildvcs=false to disable VCS stamping.
-: error obtaining VCS status: exit status 128

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ errcheck failed (.)

error: failed to check packages: errors while loading package github.com/mu-box/microbox: [-: error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.]

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ gosec failed (.)

2023/04/09 07:56:58 internal error: package "github.com/mu-box/microbox/models" without types was imported from "command-line-arguments"
Show Detail

Code Reference

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ shadow failed (.)

commands/steps/run.go:17:4: declaration of "step" shadows declaration at line 13
updater/main.go:61:12: declaration of "err" shadows declaration at line 21
util/exec.go:54:5: declaration of "err" shadows declaration at line 40
util/provider/native.go:140:16: declaration of "err" shadows declaration at line 122
util/provider/share/share_linux.go:72:3: declaration of "err" shadows declaration at line 61
util/provider/share/share_linux.go:124:3: declaration of "err" shadows declaration at line 113

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ staticcheck failed (.)

commands/build.go:52:9: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
commands/configure.go:91:2: redundant return statement (S1023)
commands/configure.go:97:2: var prettyJson should be prettyJSON (ST1003)
commands/configure.go:99:2: redundant return statement (S1023)
commands/dns.go:12:2: var DnsCmd should be DNSCmd (ST1003)
commands/evar/load.go:5:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
commands/inspect.go:12:2: type anything is unused (U1000)
commands/inspect.go:32:2: default case should be first or last in switch statement (ST1015)
commands/log.go:21:2: var logStart is unused (U1000)
commands/log.go:22:2: var logEnd is unused (U1000)
commands/log.go:23:2: var logLimit is unused (U1000)
commands/server/server.go:28:7: const name is unused (U1000)
commands/server/svc_unix.go:7:2: redundant return statement (S1023)
generators/hooks/build/user.go:8:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
generators/hooks/build/user.go:104:6: x509.IsEncryptedPEMBlock has been deprecated since Go 1.16 because it shouldn't be used: Legacy PEM encryption as specified in RFC 1423 is insecure by design. Since it does not authenticate the ciphertext, it is vulnerable to padding oracle attacks that can let an attacker recover the plaintext.  (SA1019)
generators/hooks/build/user.go:120:16: x509.DecryptPEMBlock has been deprecated since Go 1.16 because it shouldn't be used: Legacy PEM encryption as specified in RFC 1423 is insecure by design. Since it does not authenticate the ciphertext, it is vulnerable to padding oracle attacks that can let an attacker recover the plaintext.  (SA1019)
generators/hooks/code/configure.go:29:3: struct field DnsEntries should be DNSEntries (ST1003)
main.go:140:7: should omit comparison to bool constant, can be simplified to found (S1002)
main.go:146:7: should omit comparison to bool constant, can be simplified to found (S1002)
models/config.go:27:2: struct field SshKey should be SSHKey (ST1003)
models/config.go:28:2: struct field SshEncryptedKeys should be SSHEncryptedKeys (ST1003)
processors/code/build.go:144:9: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
processors/code/code.go:60:9: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
processors/component/clean.go:76:3: should use 'return !strings.Contains(err.Error(), "host is down")' instead of 'if strings.Contains(err.Error(), "host is down") { return false }; return true' (S1008)
processors/env/destroy.go:49:2: empty branch (SA9003)
processors/env/unmount.go:73:6: func mounted is unused (U1000)
processors/log/log.go:8:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
processors/log/log.go:154:25: os.Kill cannot be trapped (did you mean syscall.SIGTERM?) (SA1016)
processors/platform/mist.go:41:25: os.Kill cannot be trapped (did you mean syscall.SIGTERM?) (SA1016)
processors/provider/bridge/bridge.go:87:5: should use 'return i.Flags&net.FlagUp == net.FlagUp' instead of 'if i.Flags&net.FlagUp != net.FlagUp { return false }; return true' (S1008)
processors/provider/bridge/setup.go:7:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
processors/provider/stop.go:22:2: empty branch (SA9003)
updater/main.go:15:1: comment on exported var VERSION should be of the form "VERSION ..." (ST1022)
util/config/dirs.go:119:16: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
util/config/vars.go:23:9: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
util/display/command_error.go:75:19: boxfile.NewFromPath is deprecated: Use NewFromFile instead, which diferentiates between a missing or invalid boxfile  (SA1019)
util/display/display.go:13:2: "golang.org/x/crypto/ssh/terminal" is deprecated: this package moved to golang.org/x/term.  (SA1019)
util/display/docker_percent.go:152:3: empty branch (SA9003)
util/display/docker_percent.go:152:6: HasPrefix doesn't have side effects and its return value is ignored (SA4017)
util/display/logs.go:68:80: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
util/display/logs.go:71:2: redundant return statement (S1023)
util/display/logs.go:110:80: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
util/display/logs.go:114:2: redundant return statement (S1023)
util/display/messages.go:10:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:30:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:43:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:55:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:120:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:130:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:141:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:152:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:163:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:176:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:187:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:229:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:246:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:258:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:268:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:281:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:291:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:298:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:338:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:349:24: unnecessary use of fmt.Sprintf (S1039)
util/display/messages.go:359:24: unnecessary use of fmt.Sprintf (S1039)
util/display/prefix.go:47:5: should omit comparison to bool constant, can be simplified to p.firstLine (S1002)
util/display/prefix.go:62:13: should omit comparison to bool constant, can be simplified to p.escapeSeq (S1002)
util/display/prefix.go:69:20: should omit comparison to bool constant, can be simplified to !p.newLine (S1002)
util/display/prefix.go:71:27: should omit comparison to bool constant, can be simplified to !p.newLine (S1002)
util/display/prefix.go:85:7: should omit comparison to bool constant, can be simplified to p.newLine (S1002)
util/display/prompt_unix.go:10:2: "golang.org/x/crypto/ssh/terminal" is deprecated: this package moved to golang.org/x/term.  (SA1019)
util/display/summary.go:19:18: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (S1007)
util/dns/dns.go:7:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/odin/odin.go:9:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/provider/bridge/bridge.go:11:1: comment on exported type Response should be of the form "Response ..." (with optional leading article) (ST1021)
util/provider/dockermachine.go:39:39: error should be returned as the last argument (ST1008)
util/provider/dockermachine.go:496:30: methods on the same type should have the same receiver name (seen 1x "dockermachine", 39x "machine") (ST1016)
util/provider/dockermachine.go:1009:6: func dockerMachineURL is unused (U1000)
util/provider/dockermachine_mount.go:54:3: should use 'return !strings.Contains(string(output), "No such file or directory")' instead of 'if strings.Contains(string(output), "No such file or directory") { return false }; return true' (S1008)
util/provider/dockermachine_mount.go:311:6: func setupCoreUtilsScript is unused (U1000)
util/provider/native.go:28:31: error should be returned as the last argument (ST1008)
util/provider/provider.go:43:2: var verbose is unused (U1000)
util/provider/provider.go:57:15: error should be returned as the last argument (ST1008)
util/provider/share/share_linux.go:7:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/provider/share/share_unix.go:39:5: var sudoGid should be sudoGID (ST1003)
util/service/create_linux.go:5:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/update/run.go:5:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/update/update.go:6:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/util.go:7:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/watch/notify_internal_test.go:4:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/watch/watch.go:5:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
util/watch/watch.go:22:5: var ctimeAvailable is unused (U1000)
util/watch/watch.go:127:6: func ctimeCheck is unused (U1000)
util/watch/watch.go:144:6: func ctime is unused (U1000)
util/watch/watch.go:162:2: should replace loop with ignoreFile = append(ignoreFile, stringFields...) (S1011)

Checks Document

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ Failure Summary

  • misspell: fail
  • fmt: fail
  • vet: success!
  • cyclo: fail
  • imports: fail
  • ineffassign: fail
  • errcheck: fail
  • sec: fail
  • shadow: fail
  • staticcheck: fail

Please sign in to comment.