Skip to content

Testing workflow runs #1

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

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Testing workflow runs #1

wants to merge 23 commits into from

Conversation

rebornplusplus
Copy link
Owner

No description provided.

The goal is to introduce the concept of optional and
overrideable arguments for a Pebble service, but we
must ensure that the layering properties of Pebble
are preserved and respected. The proposed syntax re-uses
therefore the existing service “command” attribute:

    services:
	myservice:
	    command: myservice --db=/var/db [ --quiet ]

The markers [ and ] are suggested because these are
typical annotations for optional parameters and are
rarely seen naked because they are interpreted by shells.
Arguments to a service can now be passed by
using the following syntax:

    pebble run [opts..] --args <svc> arguments.. ; [opts..]

Tests are failing right now, will be fixed soon.
The upstream go-flags project do not support terminated options
like ``find -exec``. The repo was forked and the feature was
introduced in [0].

Until the PR [1] is merged in the upstream repo, we need to
maintain and point to a fork with the features there.

Refs:
- [0] rebornplusplus/go-flags@1dbaf44
- [1] jessevdk/go-flags#395
.. and a few rewording and cleanup.
.. include the new changes in usptream into this PR.
Update error messages in ``plan.Service.ParseCommand`` for
more context. Additionally, update the TODO comment in
``servstate.ServiceManager.SetServiceArgs``.
Note that tests will fail, since the new commit in
canonical/x-go is not included **yet**.
As canonical/x-go#19 is merged,
update the canonical/x-go module version to the latest commit.

Also run ``go mod tidy``.
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.

1 participant