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

Changes for RK042 - Support for Pro Rocks in Rockcraft - 30/01/25 #993

Merged
merged 71 commits into from
Feb 3, 2025

Conversation

clay-lake
Copy link

@clay-lake clay-lake commented Jan 28, 2025

  • Have you signed the CLA?
  • Have you added an entry to the changelog (docs/reference/changelog.rst)?

Updates to complete feature set fot RK042 - Support for Pro Rocks in Rockcraft.

lengau and others added 30 commits October 1, 2024 09:23
This provides a pair of functions (sources.register, sources.unregister)
for registering and unregistering source types. This differs slightly
from plugin registration in current sources cannot be removed.
Removes dependency on bumpversion in favor of git tags for versioning.

Co-authored-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
If "craft.git" is available on the PATH, use it. Otherwise, fallback to "git".

Fixes canonical#900
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
lengau and others added 15 commits January 14, 2025 12:32
Co-authored-by: Callahan <callahan.kovacs@canonical.com>
Co-authored-by: Callahan <callahan.kovacs@canonical.com>
Co-authored-by: Alex Lowe <alex.lowe@canonical.com>
…cal#966)

* change craftctl channel to socket

Change to craftctl communication channel from named pipes to unix
sockets to make it easier to consolidate the ctl server and error
stream capture.

* allow using process selector with custom handlers

Process execution runs a selector to obtain data from i/o streams
to obtain the isolated error output. Allow this selection loop run
on a caller-specified selector with handlers registered to also
process interactions with craftctl.

* change scriptlet environment script name

Step execution environment is step-specific, and the existing
environment.sh script is for the build step only. Rename the file
containing the scriptlet environment to avoid confusion with the
existing file (which may potentially have a different payload).

* force select selector

Using DefaultSelector fails in jammy with Python 3.10. It seems that
this specific version picks a different selector, or there's some
problem with SelectSelector that prevents it from working as expected.

---------

Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
It's possible, and somewhat common, for a go module to be defined inside a
repo's subdir; in this case we can define source-subdir, but the go-use
plugin needs to use this - otherwise the repo root gets used.

Fixes canonical#978
Signed-off-by: Dariusz Duda <dariusz.duda@canonical.com>
Signed-off-by: Dariusz Duda <dariusz.duda@canonical.com>
…l#977)

A relocatable `.pc` file has a `prefix` key beginning with
`${pcfiledir}`. The `prefix` key is not modified if the `.pc`
file is relocatable.
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
* docs: update and complete the step execution environment

This adds a large number of missing environment variables from the step
execution environment and updates the information about CRAFT_TARGET_ARCH
and CRAFT_ARCH_TRIPLET being deprecated.

Co-authored-by: Callahan <callahan.kovacs@canonical.com>
Co-authored-by: JJ Coldiron <jj.coldiron@canonical.com>
@clay-lake clay-lake marked this pull request as draft January 28, 2025 16:40
clay-lake and others added 7 commits January 28, 2025 17:53
Co-authored-by: Tiago Nobrega <tiago.nobrega@canonical.com>
Co-authored-by: Michael DuBelko <michael.dubelko@gmail.com>
Co-authored-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Co-authored-by: Callahan <callahan.kovacs@canonical.com>
@clay-lake clay-lake changed the title DRAFT: RK042 - Support for Pro Rocks in Rockcraft Changes for RK042 - Support for Pro Rocks in Rockcraft - 30/01/25 Jan 30, 2025
@clay-lake clay-lake marked this pull request as ready for review January 30, 2025 14:18
@clay-lake clay-lake marked this pull request as draft January 30, 2025 14:18
@clay-lake clay-lake marked this pull request as ready for review January 30, 2025 14:19
@clay-lake
Copy link
Author

Hey, @canonical/starcraft-reviewers @tigarmo Could I get this merged in?

@tigarmo tigarmo merged commit 0166434 into canonical:feature/pro-sources Feb 3, 2025
14 checks passed
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.