Skip to content

rosdistro_build_cache should have a max age option for the source repos cache #66

@mikepurvis

Description

@mikepurvis

Via #65 (comment):

It would be better to optionally extend the cache building to explicitly know how to walk source repos. And then with the extended cache the rosinstall_generator could take advantage of the extended cache and fallback to upstream sources.

The biggest issue I see here is that unlike with the GBP release branches, it's harder to tell if a devel branch cache is stale or not. The best thing you could do would be cache the commit hash, and then use git ls-remote to determine if the branch has moved on from that point.

Apart from that, there are two major ways I see this going:

  • rosdistro_build_cache gets a switch like --from-source, and the resulting cache format is unchanged. Has the disadvantage of needing to build a separate cache for source, but the advantage is that other tooling like rosinstall_generator is unchanged.
  • The cache format changes, and the source branch package.xml is cached alongside the release one.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions