-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Vendoring the composure #1820
Vendoring the composure #1820
Conversation
hmm, the tests are failing. I had to add the .bash extension locally to make them work. It seems like the CI test would like me to remove them? |
This bats loading thing got a little messy. I will have to clean-up/rebase the branch before it's ready for a merge. |
There is a lot that I'd like to change and I think a full review would get messy. I might make a branch, but might resort to a bunch of comments... Edit: glad you isolated this to it's own PR though 😆 |
Yeah, I consider the PR a POC for now. |
Hey @buhl , well done! I think that an easier solution would be to source |
This is where I would go with this. I actually want to kill the loop loader and explicitly source libraries, in order, anyways. We don't have so many that the list would be unwieldy, so I've come to see the loop as an unneeded abstraction. Edit: Also I would just source from vendor and scrap the |
I like these solutions. I will refactor the load of composure in this PR to just source the file directly from the vendor folder in the top of Another function the files in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments, but this seems like a pretty clean and good change! nice work!
I still need to make sure files are added to |
…3698d git-subtree-dir: vendor/github.com/erichs/composure git-subtree-split: 5c3698df33cf92f9dbe75b807b1d29729989baaa
git-vendor-name: composure git-vendor-dir: vendor/github.com/erichs/composure git-vendor-repository: https://github.com/erichs/composure git-vendor-ref: 1.3.1
I have rebased and forced pushed this branch. If the changes can be accepted it's ready for merge Also by merging this PR #872 can be closed I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well done @buhl
I have left some small comments, I will look again after you will address them 😄
Fixed tests Fixed install.sh and bash_it.sh Added gitattributes to the vendor folder Changed documentation
I fixed the last two comments and force pushed the branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, well done @buhl !!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@buhl I think this looks great! @NoahGorny great CR. We should definitely get this work merged and deal with any tinkering in follow up PRs.
Description
As per #1818
This still needs a little love.
I had to move up the loading of vendored libs because composure was loaded as the first thing in
bash_it.sh
This means I can't use
__log_debug
when loading vendored libs. A decision has to be made on what we do with this issue.Also my linting has started to replace spaces with tabs in files. I am not sure if this is an error on my part, if it is, I need some help to fix it. So this PR looks bigger than it had to be.
Once we settle on what to do with the logging I will finish adding files to clean_files and such.
Types of changes
Moved the composure library to the vendor folder
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.