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

Convert dockerVersion from a setting to a task #1058

Merged
merged 1 commit into from
Oct 27, 2017

Conversation

dwickern
Copy link
Collaborator

I get errors when starting sbt when the machine can't connect to docker

An error occurred trying to connect: Get http://127.0.0.1:2375/v1.22/version: dial tcp 127.0.0.1:2375: connectex: No connection could be made because the target machine actively refused it.

Since fetching the docker version involves starting a process and/or making an HTTP request, it seems like it should be a task rather than a setting.

Copy link
Contributor

@muuki88 muuki88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for further improving this 😎🤩

IMHO the difference between settings and tasks is not how the value is produced, but what kind of value.

I found setting was a the right choice as the version is static and doesn't change. However the unwanted logging is indeed annoying and probably not easy to fix. So we should use this.

@muuki88 muuki88 merged commit af21f71 into sbt:master Oct 27, 2017
@muuki88
Copy link
Contributor

muuki88 commented Oct 27, 2017

@dwickern interested in getting commit rights? 😍

@dwickern dwickern deleted the docker-version-task branch November 2, 2017 17:30
@dwickern
Copy link
Collaborator Author

dwickern commented Nov 2, 2017

@muuki88 Sure, you can add me

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