Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error from findMigrations #401

Merged

Conversation

pjdufour-truss
Copy link
Contributor

The findMigrations function used for initializing a file migrator doesn't currently return errors from walking a directory, but always returns nil.

I'd expect this change to be more in line with API expectations, but not sure if downstream programs had been making false assumptions.

If I am mistaken in my understanding of this function, then we should add a comment that explains why it always returns nil.

stanislas-m and others added 4 commits May 5, 2019 14:39
* Back to development

* Add Timestamps() macro when generating fizz migrations (gobuffalo#365)

* Azure pipelines (gobuffalo#367)

* WIP Azure pipelines

* Fix typo

* Fix soda install script

* Fix binary name

* Fix tsoda call

* Build soda without modules

* Use Bash to install soda

* Fix pipeline

* Fix soda build

* Remove go module builds

* Fix soda install

* Install soda with go install

* Fix config parse test

* Do not create Docker default DBs

* Remove Travis

* Update badge in Readme

* Remove legacy Anko format fixer (gobuffalo#366)

It can still be called using soda fix command.

* removes errors.WithStack as its noisy and makes it harder to understand (gobuffalo#372)

* removes errors.WithStack as its noisy and makes it harder to understand

* fix packr file

* Add a fix for old fizz without Timestamps() (gobuffalo#373)

* WIP fix old auto-timestamp

* Use plush AST to rewrite fizz files

* Fix case when files are already using t.Timestamps()

* Fix Windows line breaks issue

* Add a mention in godocs about the behavior on slices for executors (gobuffalo#375)

Fixes gobuffalo#363.

* Fix "has_one" pointer association (gobuffalo#378)

* hasOneAssociation did not work with pointers

* Bump version

* Fix IdlePool option (gobuffalo#380)

The zero value was not the same as in the stdlib and could cause
perfs issues. This will now not call SetMaxIdleConns when IdlePool
is set to the zero value.

Fixes gobuffalo#376
@pjdufour-truss pjdufour-truss requested a review from a team as a code owner June 21, 2019 14:45
@pjdufour-truss
Copy link
Contributor Author

Those errors from CI look unrelated. Not sure what the issue is.

@stanislas-m stanislas-m changed the base branch from master to development July 1, 2019 18:02
@stanislas-m stanislas-m merged commit 0e2ff23 into gobuffalo:development Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants