Skip to content

Commit

Permalink
fix install command
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Apr 8, 2024
1 parent 8974102 commit 75ba22a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ REF: a small penguin with a yellowish crest, breeding on subantarctic coastal cl
# Install

```
go install github.com/c9s/rockhopper/cmd/rockhopper@v2.0.3
go install github.com/c9s/rockhopper/v2/cmd/rockhopper@v2.0.3
```

# Quick Start
Expand Down
5 changes: 5 additions & 0 deletions loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"time"

"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
)

var (
Expand Down Expand Up @@ -160,8 +161,12 @@ func (loader *SqlMigrationLoader) SetDefaultPackage(pkgName string) {
// migrations folders and go func registry, and key them by version.
// Load method always returns a sorted migration slice
func (loader *SqlMigrationLoader) Load(dirs ...string) (MigrationSlice, error) {
log.Debugf("starting loading sql migrations from %v", dirs)

var all MigrationSlice
for _, d := range dirs {
log.Debugf("loading sql migrations from %v", d)

slice, err := loader.LoadDir(d)
if err != nil {
return nil, err
Expand Down

0 comments on commit 75ba22a

Please sign in to comment.