-
Notifications
You must be signed in to change notification settings - Fork 7
Issue 116 #119
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
Conversation
343b2cd to
27eedcd
Compare
| } | ||
| } | ||
|
|
||
| func TestToJSON2(t *testing.T) { |
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.
@aleh-null do we still need this test?
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.
Probably a good idea to have test on the actual dev container. WDYT of using https://github.com/marcozac/go-jsonc in the future?
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.
is it better?
aleh-null
left a comment
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.
Just a rename suggesting. Otherwise LGTM.
pkg/devcontainer/image_manager.go
Outdated
|
|
||
| // CheckLocalImage checks if an image with the given name exists locally. | ||
| // It returns true if the image exists, false if it doesn't, and an error if the check fails. | ||
| func (im *DockerImageManager) CheckLocalImage(ctx context.Context, name string) (bool, error) { |
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.
rename CheckLocalImage() -> LocalImageExists()
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.
done
pkg/devcontainer/runner.go
Outdated
| return nil | ||
| } | ||
|
|
||
| func (r *DockerRunner) pullOrBuildImage(ctx context.Context, config Config, projectPath string) (string, error) { |
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.
Hm, we do more that that. Maybe we should just abstract case config.IsImageDevContainer()
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.
extracted the IsImageDevContainer case in a separate method. we can abstract the whole image thing further into something like ImageProvider but i think it's an overkill for now.
No description provided.