Skip to content

Generate varlink API documentation automatically#734

Closed
baude wants to merge 1 commit intocontainers:masterfrom
baude:varlinkdoc
Closed

Generate varlink API documentation automatically#734
baude wants to merge 1 commit intocontainers:masterfrom
baude:varlinkdoc

Conversation

@baude
Copy link
Member

@baude baude commented May 8, 2018

Using varlink's idl parser, we generate API documentation for the podman
API relying on the .varlink file as the source.

Signed-off-by: baude [email protected]

@rh-atomic-bot
Copy link
Collaborator

☔ The latest upstream changes (presumably 21ebdb5) made this pull request unmergeable. Please resolve the merge conflicts.

@TomSweeneyRedHat
Copy link
Member

@baude looks like a rebase is needed.

Using varlink's idl parser, we generate API documentation for the podman
API relying on the .varlink file as the source.

Signed-off-by: baude <[email protected]>
@baude
Copy link
Member Author

baude commented May 8, 2018

bot, retest this please

@mheon
Copy link
Member

mheon commented May 8, 2018

This LGTM once tests are green

@baude
Copy link
Member Author

baude commented May 8, 2018

bot, retest this please

@baude
Copy link
Member Author

baude commented May 8, 2018

@rh-atomic-bot r+

@rh-atomic-bot
Copy link
Collaborator

📌 Commit db548c9 has been approved by baude

@rh-atomic-bot
Copy link
Collaborator

⚡ Test exempted: pull fully rebased and already tested.

wking added a commit to wking/libpod that referenced this pull request Jun 22, 2018
The API.md and cmd/podman/varlink/ioprojectatomicpodman.go targets
will continue to work regardless of the presence (or not) of 'varlink'
is in BUILDTAGS.  However, cmd/podman/varlink/ioprojectatomicpodman.go
is now only required by the podman target when BUILDTAGS contains
'varlink'.

API.md had also been an podman dependency since 5b2627d (Makefile:
Drop find-godeps.sh for podman target, 2018-05-15, containers#776) when I
expanded varlink_api_generate.  It had been an indirect podman
dependency (via varlink_api_generate) since 2526355 (Generate varlink
API documentation automatically, 2018-05-07, containers#734).  But the podman
executable obviously doesn't depend on the Markdown file, so I'm
removing that dependency here.
baude pushed a commit to baude/podman that referenced this pull request Jun 22, 2018
The API.md and cmd/podman/varlink/ioprojectatomicpodman.go targets
will continue to work regardless of the presence (or not) of 'varlink'
is in BUILDTAGS.  However, cmd/podman/varlink/ioprojectatomicpodman.go
is now only required by the podman target when BUILDTAGS contains
'varlink'.

API.md had also been an podman dependency since 5b2627d (Makefile:
Drop find-godeps.sh for podman target, 2018-05-15, containers#776) when I
expanded varlink_api_generate.  It had been an indirect podman
dependency (via varlink_api_generate) since 2526355 (Generate varlink
API documentation automatically, 2018-05-07, containers#734).  But the podman
executable obviously doesn't depend on the Markdown file, so I'm
removing that dependency here.

Signed-off-by: baude <[email protected]>
rh-atomic-bot pushed a commit that referenced this pull request Jun 24, 2018
some platforms and operating systems do not have varlink.  in those cases,
we need to be able to turn off enablement of varlink in podman. this can now
be done with BUILDTAGS passed to the build though perhaps in the future
will be better.

the default is to build with varlink

Signed-off-by: baude <[email protected]>

squash! make varlink optional for podman

The API.md and cmd/podman/varlink/ioprojectatomicpodman.go targets
will continue to work regardless of the presence (or not) of 'varlink'
is in BUILDTAGS.  However, cmd/podman/varlink/ioprojectatomicpodman.go
is now only required by the podman target when BUILDTAGS contains
'varlink'.

API.md had also been an podman dependency since 5b2627d (Makefile:
Drop find-godeps.sh for podman target, 2018-05-15, #776) when I
expanded varlink_api_generate.  It had been an indirect podman
dependency (via varlink_api_generate) since 2526355 (Generate varlink
API documentation automatically, 2018-05-07, #734).  But the podman
executable obviously doesn't depend on the Markdown file, so I'm
removing that dependency here.

Signed-off-by: baude <[email protected]>

squash! make varlink optional for podman

The command-pointer approach will scale well if/when we add additional
optional commands behind their own build tags, because those tags
won't all be competing for the same getOptionalCommands namespace.

Signed-off-by: W. Trevor King <[email protected]>

Closes: #987
Approved by: rhatdan
@baude baude deleted the varlinkdoc branch December 22, 2019 19:15
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants