Comments (6)
The process should be really simple, and I will add this to the documentation:
~$ echo $GOPATH
/home/gmax/go
~$ mkdir go
~$ cd go
Here I have an empty go directory. I need just one command to get the package and its dependencies:
~/go$ go get github.com/datacharmer/dbdeployer
~/go$ ls -l src/
total 4
drwxrwxr-x 4 gmax gmax 4096 Apr 11 20:45 github.com
~/go$ cd src/github.com/datacharmer/dbdeployer/
~/go/src/github.com/datacharmer/dbdeployer$ ls
abbreviations Changelog CNAME concurrent defaults LICENSE mkreadme README.md test
build.sh cmd common _config.yml docs main.go pflag sandbox unpack
~/go/src/github.com/datacharmer/dbdeployer$ ./build.sh linux 1.1.1
+ env GOOS=linux GOARCH=386 go build -o dbdeployer-1.1.1.linux .
-rwxrwxr-x 1 gmax gmax 4.4M Apr 11 20:46 dbdeployer-1.1.1.linux
-rw-rw-r-- 1 gmax gmax 1.7M Apr 11 20:46 dbdeployer-1.1.1.linux.tar.gz
from dbdeployer.
Also, if you want to compile on your own, please read this notice about pflags.
I will consider your suggestion about vendor, but I want to avoid distributing code from others into my repository. I have several tests that check the behavior of the code that depends on external packages and I will deal with breakages when I see one.
from dbdeployer.
I have updated build.sh to check dependencies and give advice on how to build.
Thanks for raising awareness about this issue.
The solution may not be final. Please iterate if you get more problems.
from dbdeployer.
Hi Giuseppe.
Thanks for your comments and the update. golang version dependency management is planned to get better so maybe this will soon be a non-issue. Having had some bugs due to the dependent libraries changing I still like the idea of recording that somewhere if possible.
from dbdeployer.
I have changed my mind about using a vendor folder, and I am experimenting with it using govendor.
The pflags
problem would be avoided completely, and it would possibly allow me to enhance usability by playing with cobra
defaults.
from dbdeployer.
Fixed (better) in version 1.8.3
from dbdeployer.
Related Issues (20)
- Required flag, yet has default? HOT 2
- MariaDB-10.10 puts dbdeployer's port calculation based on version beyond acceptable 64k port number HOT 2
- switch master-slave? HOT 1
- "./my" prefix script adds "my" in front of the tool name HOT 4
- 1.69.2 isn't in releases, but the dbdeployer-install.sh wants it to be. HOT 2
- how to upgrade dbdeployer <1.36 HOT 2
- Sandbox start script gives an error message if the current working directory path has spaces in it. HOT 3
- show_binlog expects different log files HOT 3
- dbdeployer tests don't run on recent Ubuntu versions in Github actions HOT 1
- unknown option '--initialize-insecure' HOT 2
- dbdeployer 1.72.0 OSX binary missing HOT 1
- Percona 8.0.32 sandbox - can't convert 'msb_ps8_0_32' into port number HOT 2
- MySQL 8.0.33 Added HOT 2
- Add support for .tar archives as downloaded from dev.mysql.com HOT 16
- update does not update config file HOT 3
- Tests are failing after merge HOT 6
- Unable to upgrade sandbox MariaDB 10.3.22 to 10.11.X via dbdeployer HOT 1
- Error installing MySQL Shell (>= 8.0.30 (included 8.1.1)) HOT 1
- DBdeployer Mysql is not writting the error or slow logs HOT 3
- New maintainer wanted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbdeployer.