Skip to content

Conversation

brahmaroutu
Copy link
Contributor

the runconfig/config_test TestDecodeContainerConfig test is failing when compiled with gccgo. There is a bug files with gccgo specifically to address the decoder issue. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66138
I believe there is no reason to add these fields to the top level structure and hence this PR.

Signed-off-by: Srini Brahmaroutu srbrahma@us.ibm.com

@duglin
Copy link
Contributor

duglin commented May 20, 2015

@brahmaroutu it might be good to see if we can get rid of hostConfigWrapper entirely since it seems like its not really used for much if we do this PR.

@brahmaroutu brahmaroutu force-pushed the decoder_issue_gccgo branch 2 times, most recently from 2f66887 to b5560d7 Compare May 20, 2015 15:43
@brahmaroutu
Copy link
Contributor Author

@duglin As per your comments, cleaned up the code and removed hostConfigWrapper

@brahmaroutu brahmaroutu force-pushed the decoder_issue_gccgo branch 2 times, most recently from 7a031b3 to 73b6759 Compare May 31, 2015 19:41
func (c ContainerConfigWrapper) HostConfig() *HostConfig {
if c.hostConfigWrapper == nil {
return new(HostConfig)
func (w ContainerConfigWrapper) GetHostConfig() *HostConfig {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be w *ContainerConfigWrapper

@brahmaroutu brahmaroutu force-pushed the decoder_issue_gccgo branch 2 times, most recently from 3f1911d to 94a49bd Compare June 2, 2015 22:20
@brahmaroutu
Copy link
Contributor Author

@LK4D4 Thanks for the review I updated code.

@brahmaroutu brahmaroutu force-pushed the decoder_issue_gccgo branch from 94a49bd to aec411c Compare June 5, 2015 15:57
@thaJeztah
Copy link
Member

ping @duglin @LK4D4 PTAL

@brahmaroutu brahmaroutu force-pushed the decoder_issue_gccgo branch from aec411c to ae6724e Compare June 10, 2015 22:49
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
@brahmaroutu brahmaroutu force-pushed the decoder_issue_gccgo branch from ae6724e to eb97de7 Compare June 11, 2015 16:46
@calavera
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants