Reduce the number of go gets and fix Travis.

This commit is contained in:
Azareal 2018-10-27 14:12:13 +10:00
parent a278170766
commit 5ab20e0adf
8 changed files with 15 additions and 545 deletions

View File

@ -1,41 +1,5 @@
echo "Updating the MySQL Driver"
go get -u github.com/go-sql-driver/mysql
echo "Updating the PostgreSQL Driver"
go get -u github.com/lib/pq
echo "Updating the MSSQL Driver"
go get -u github.com/denisenkom/go-mssqldb
echo "Updating bcrypt"
go get -u golang.org/x/crypto/bcrypt
echo "Updating Argon2"
go get -u golang.org/x/crypto/argon2
echo "Updating gopsutil"
go get -u github.com/Azareal/gopsutil
echo "Updating Gorilla WebSockets"
go get -u github.com/gorilla/websocket
echo "Updating Sourcemap (dependency for OttoJS)"
go get -u gopkg.in/sourcemap.v1
echo "Updating OttoJS"
go get -u github.com/robertkrimen/otto
echo "Updating the Rez Image Resizer"
go get -u github.com/bamiaux/rez
echo "Updating Caire"
go get -u github.com/esimov/caire
echo "Updating some error helpers"
go get -u github.com/pkg/errors
echo "Updating fsnotify"
go get -u github.com/fsnotify/fsnotify
echo "Updating the dependencies"
go get
echo "Updating Gosora"
rm ./schema/lastSchema.json

View File

@ -1,112 +1,12 @@
@echo off
echo Updating the dependencies
echo Updating the MySQL Driver
go get -u github.com/go-sql-driver/mysql
go get
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the PostgreSQL Driver
go get -u github.com/lib/pq
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the MSSQL Driver
go get -u github.com/denisenkom/go-mssqldb
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the bcrypt library
go get -u golang.org/x/crypto/bcrypt
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the Argon2 library
go get -u golang.org/x/crypto/argon2
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating /x/sys/windows (dependency for gopsutil)
go get -u golang.org/x/sys/windows
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating wmi (dependency for gopsutil)
go get -u github.com/StackExchange/wmi
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the gopsutil library
go get -u github.com/Azareal/gopsutil
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the WebSockets library
go get -u github.com/gorilla/websocket
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating Sourcemap (dependency for OttoJS)
go get -u gopkg.in/sourcemap.v1
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating OttoJS
go get -u github.com/robertkrimen/otto
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the Rez Image Resizer
go get -u github.com/bamiaux/rez
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating Caire
go get -u github.com/esimov/caire
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating some error helpers
go get -u github.com/pkg/errors
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating fsnotify
go get -u github.com/fsnotify/fsnotify
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating Gosora
cd schema
del /Q lastSchema.json

View File

@ -97,36 +97,10 @@ Linux is similar, however you might need to use cd and mv a bit more like in the
You also need to substitute the `gosora.exe` bits for `./Gosora` on Linux. For more info, you might want to take a gander inside the `./run-linux` and `./install-linux` shell files to see how they're implemented.
If you want to skip typing all the `go get`s, you can run `./update-deps.bat` (Windows) or `./update-deps-linux` to do that for you.
```bash
git clone https://github.com/Azareal/Gosora
go get -u github.com/go-sql-driver/mysql
go get -u golang.org/x/crypto/bcrypt
go get -u golang.org/x/crypto/argon2
go get -u github.com/StackExchange/wmi
go get -u github.com/Azareal/gopsutil
go get -u github.com/gorilla/websocket
go get -u gopkg.in/sourcemap.v1
go get -u github.com/robertkrimen/otto
go get -u github.com/esimov/caire
go get -u github.com/lib/pq
go get -u github.com/denisenkom/go-mssqldb
go get -u github.com/fsnotify/fsnotify
go get -u github.com/pkg/errors
go get
rm -f template_*.go

View File

@ -1,112 +1,12 @@
@echo off
echo Updating the dependencies
echo Updating the MySQL Driver
go get -u github.com/go-sql-driver/mysql
go get
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the PostgreSQL Driver
go get -u github.com/lib/pq
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the MSSQL Driver
go get -u github.com/denisenkom/go-mssqldb
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the bcrypt library
go get -u golang.org/x/crypto/bcrypt
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the Argon2 library
go get -u golang.org/x/crypto/argon2
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating /x/sys/windows (dependency for gopsutil)
go get -u golang.org/x/sys/windows
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating wmi (dependency for gopsutil)
go get -u github.com/StackExchange/wmi
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the gopsutil library
go get -u github.com/Azareal/gopsutil
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the WebSockets library
go get -u github.com/gorilla/websocket
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating Sourcemap (dependency for OttoJS)
go get -u gopkg.in/sourcemap.v1
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating OttoJS
go get -u github.com/robertkrimen/otto
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the Rez Image Resizer
go get -u github.com/bamiaux/rez
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating Caire
go get -u github.com/esimov/caire
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating some error helpers
go get -u github.com/pkg/errors
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating fsnotify
go get -u github.com/fsnotify/fsnotify
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Building the updater
go generate
go build ./updater

View File

@ -1,41 +1,5 @@
echo "Installing the MySQL Driver"
go get -u github.com/go-sql-driver/mysql
echo "Installing the PostgreSQL Driver"
go get -u github.com/lib/pq
echo "Installing the MSSQL Driver"
go get -u github.com/denisenkom/go-mssqldb
echo "Installing bcrypt"
go get -u golang.org/x/crypto/bcrypt
echo "Installing Argon2"
go get -u golang.org/x/crypto/argon2
echo "Installing gopsutil"
go get -u github.com/Azareal/gopsutil
echo "Installing Gorilla WebSockets"
go get -u github.com/gorilla/websocket
echo "Installing Sourcemap (dependency for OttoJS)"
go get -u gopkg.in/sourcemap.v1
echo "Installing OttoJS"
go get -u github.com/robertkrimen/otto
echo "Installing the Rez Image Resizer"
go get -u github.com/bamiaux/rez
echo "Installing Caire"
go get -u github.com/esimov/caire
echo "Installing some error helpers"
go get -u github.com/pkg/errors
echo "Installing fsnotify"
go get -u github.com/fsnotify/fsnotify
echo "Installing the dependencies"
go get
echo "Building the installer"
cd ./install

View File

@ -1,112 +1,12 @@
@echo off
echo Installing the dependencies
echo Installing the MySQL Driver
go get -u github.com/go-sql-driver/mysql
go get
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing the PostgreSQL Driver
go get -u github.com/lib/pq
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing the MSSQL Driver
go get -u github.com/denisenkom/go-mssqldb
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing the bcrypt library
go get -u golang.org/x/crypto/bcrypt
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing the Argon2 library
go get -u golang.org/x/crypto/argon2
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing /x/sys/windows (dependency for gopsutil)
go get -u golang.org/x/sys/windows
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing wmi (dependency for gopsutil)
go get -u github.com/StackExchange/wmi
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing the gopsutil library
go get -u github.com/Azareal/gopsutil
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing the WebSockets library
go get -u github.com/gorilla/websocket
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing Sourcemap (dependency for OttoJS)
go get -u gopkg.in/sourcemap.v1
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing the OttoJS
go get -u github.com/robertkrimen/otto
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing the Rez Image Resizer
go get -u github.com/bamiaux/rez
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing Caire
go get -u github.com/esimov/caire
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing some error helpers
go get -u github.com/pkg/errors
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Installing fsnotify
go get -u github.com/fsnotify/fsnotify
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Building the installer
go generate
go build "./cmd/install"

View File

@ -1,38 +1,2 @@
echo "Updating the MySQL Driver"
go get -u github.com/go-sql-driver/mysql
echo "Updating the PostgreSQL Driver"
go get -u github.com/lib/pq
echo "Updating the MSSQL Driver"
go get -u github.com/denisenkom/go-mssqldb
echo "Updating bcrypt"
go get -u golang.org/x/crypto/bcrypt
echo "Updating Argon2"
go get -u golang.org/x/crypto/argon2
echo "Updating gopsutil"
go get -u github.com/Azareal/gopsutil
echo "Updating Gorilla WebSockets"
go get -u github.com/gorilla/websocket
echo "Updating Sourcemap (dependency for OttoJS)"
go get -u gopkg.in/sourcemap.v1
echo "Updating OttoJS"
go get -u github.com/robertkrimen/otto
echo "Updating the Rez Image Resizer"
go get -u github.com/bamiaux/rez
echo "Updating Caire"
go get -u github.com/esimov/caire
echo "Updating some error helpers"
go get -u github.com/pkg/errors
echo "Updating fsnotify"
go get -u github.com/fsnotify/fsnotify
echo "Updating the dependencies"
go get

View File

@ -1,103 +1,7 @@
@echo off
echo Updating the MySQL Driver
go get -u github.com/go-sql-driver/mysql
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the PostgreSQL Driver
go get -u github.com/lib/pq
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the MSSQL Driver
go get -u github.com/denisenkom/go-mssqldb
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating bcrypt
go get -u golang.org/x/crypto/bcrypt
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating Argon2
go get -u golang.org/x/crypto/argon2
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating /x/system/windows (dependency for gopsutil)
go get -u golang.org/x/sys/windows
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating wmi (dependency for gopsutil)
go get -u github.com/StackExchange/wmi
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating gopsutil
go get -u github.com/Azareal/gopsutil
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating Gorilla Websockets
go get -u github.com/gorilla/websocket
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating Sourcemap (dependency for OttoJS)
go get -u gopkg.in/sourcemap.v1
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating OttoJS
go get -u github.com/robertkrimen/otto
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating the Rez Image Resizer
go get -u github.com/bamiaux/rez
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating Caire
go get -u github.com/esimov/caire
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating some error helpers
go get -u github.com/pkg/errors
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Updating fsnotify
go get -u github.com/fsnotify/fsnotify
echo Updating the dependencies
go get
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%