Skip to content

Commit

Permalink
fix(Copr): Add chroot to copr enable
Browse files Browse the repository at this point in the history
This improves the installation instructions to align better with
installing the specific build we're displaying. If not for this you
couldn't install rhel9 specific chroots as dnf copr would assume epel9
  • Loading branch information
Venefilyn committed Oct 14, 2024
1 parent ea5431c commit 5dd464e
Show file tree
Hide file tree
Showing 3 changed files with 331 additions and 41 deletions.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@
"engines": {
"node": ">=20",
"pnpm": ">=9"
}
},
"packageManager": "[email protected]+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4"
}
3 changes: 2 additions & 1 deletion frontend/src/components/copr/CoprBuild.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ export const CoprBuild = () => {
</ListItem>
<ListItem>
<code>
sudo dnf copr enable {data.copr_owner}/{data.copr_project}
sudo dnf copr enable {data.copr_owner}/{data.copr_project}{" "}
{data.chroot}
</code>
</ListItem>
<ListItem>
Expand Down
366 changes: 327 additions & 39 deletions frontend/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* prettier-ignore-start */

/* eslint-disable */

// @ts-nocheck

// noinspection JSUnusedGlobalSymbols
Expand Down Expand Up @@ -506,45 +510,329 @@ declare module '@tanstack/react-router' {

// Create and export the route tree

export const routeTree = rootRoute.addChildren({
IndexRoute,
JobsRoute: JobsRoute.addChildren({
JobsBodhiRoute,
JobsBodhiUpdatesRoute,
JobsCoprRoute,
JobsCoprBuildsRoute,
JobsDownstreamKojiBuildsRoute,
JobsKojiRoute,
JobsKojiBuildsRoute,
JobsKojiDownstreamRoute,
JobsProposeDownstreamRoute,
JobsProposeDownstreamsRoute,
JobsPullFromUpstreamRoute,
JobsPullFromUpstreamsRoute,
JobsSrpmRoute,
JobsSrpmBuildsRoute,
JobsTestingFarmRoute,
JobsTestingFarmRunsRoute,
JobsIndexRoute,
}),
PipelineRoute,
PipelinesRoute,
ResultsRoute,
UsageRoute,
PipelineIdRoute,
ProjectsForgeLazyRoute,
ProjectsIndexRoute,
JobsBodhiIdRoute,
JobsCoprIdRoute,
JobsKojiDownstreamIdRoute,
JobsKojiIdRoute,
JobsProposeDownstreamIdRoute,
JobsPullFromUpstreamIdRoute,
JobsSrpmIdRoute,
JobsTestingFarmIdRoute,
ProjectsForgeNamespaceLazyRoute,
ProjectsForgeNamespaceRepoRoute,
})
interface JobsRouteChildren {
JobsBodhiRoute: typeof JobsBodhiRoute
JobsBodhiUpdatesRoute: typeof JobsBodhiUpdatesRoute
JobsCoprRoute: typeof JobsCoprRoute
JobsCoprBuildsRoute: typeof JobsCoprBuildsRoute
JobsDownstreamKojiBuildsRoute: typeof JobsDownstreamKojiBuildsRoute
JobsKojiRoute: typeof JobsKojiRoute
JobsKojiBuildsRoute: typeof JobsKojiBuildsRoute
JobsKojiDownstreamRoute: typeof JobsKojiDownstreamRoute
JobsProposeDownstreamRoute: typeof JobsProposeDownstreamRoute
JobsProposeDownstreamsRoute: typeof JobsProposeDownstreamsRoute
JobsPullFromUpstreamRoute: typeof JobsPullFromUpstreamRoute
JobsPullFromUpstreamsRoute: typeof JobsPullFromUpstreamsRoute
JobsSrpmRoute: typeof JobsSrpmRoute
JobsSrpmBuildsRoute: typeof JobsSrpmBuildsRoute
JobsTestingFarmRoute: typeof JobsTestingFarmRoute
JobsTestingFarmRunsRoute: typeof JobsTestingFarmRunsRoute
JobsIndexRoute: typeof JobsIndexRoute
}

const JobsRouteChildren: JobsRouteChildren = {
JobsBodhiRoute: JobsBodhiRoute,
JobsBodhiUpdatesRoute: JobsBodhiUpdatesRoute,
JobsCoprRoute: JobsCoprRoute,
JobsCoprBuildsRoute: JobsCoprBuildsRoute,
JobsDownstreamKojiBuildsRoute: JobsDownstreamKojiBuildsRoute,
JobsKojiRoute: JobsKojiRoute,
JobsKojiBuildsRoute: JobsKojiBuildsRoute,
JobsKojiDownstreamRoute: JobsKojiDownstreamRoute,
JobsProposeDownstreamRoute: JobsProposeDownstreamRoute,
JobsProposeDownstreamsRoute: JobsProposeDownstreamsRoute,
JobsPullFromUpstreamRoute: JobsPullFromUpstreamRoute,
JobsPullFromUpstreamsRoute: JobsPullFromUpstreamsRoute,
JobsSrpmRoute: JobsSrpmRoute,
JobsSrpmBuildsRoute: JobsSrpmBuildsRoute,
JobsTestingFarmRoute: JobsTestingFarmRoute,
JobsTestingFarmRunsRoute: JobsTestingFarmRunsRoute,
JobsIndexRoute: JobsIndexRoute,
}

const JobsRouteWithChildren = JobsRoute._addFileChildren(JobsRouteChildren)

export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/jobs': typeof JobsRouteWithChildren
'/pipeline': typeof PipelineRoute
'/pipelines': typeof PipelinesRoute
'/results': typeof ResultsRoute
'/usage': typeof UsageRoute
'/jobs/bodhi': typeof JobsBodhiRoute
'/jobs/bodhi-updates': typeof JobsBodhiUpdatesRoute
'/jobs/copr': typeof JobsCoprRoute
'/jobs/copr-builds': typeof JobsCoprBuildsRoute
'/jobs/downstream-koji-builds': typeof JobsDownstreamKojiBuildsRoute
'/jobs/koji': typeof JobsKojiRoute
'/jobs/koji-builds': typeof JobsKojiBuildsRoute
'/jobs/koji-downstream': typeof JobsKojiDownstreamRoute
'/jobs/propose-downstream': typeof JobsProposeDownstreamRoute
'/jobs/propose-downstreams': typeof JobsProposeDownstreamsRoute
'/jobs/pull-from-upstream': typeof JobsPullFromUpstreamRoute
'/jobs/pull-from-upstreams': typeof JobsPullFromUpstreamsRoute
'/jobs/srpm': typeof JobsSrpmRoute
'/jobs/srpm-builds': typeof JobsSrpmBuildsRoute
'/jobs/testing-farm': typeof JobsTestingFarmRoute
'/jobs/testing-farm-runs': typeof JobsTestingFarmRunsRoute
'/pipeline/$id': typeof PipelineIdRoute
'/projects/$forge': typeof ProjectsForgeLazyRoute
'/jobs/': typeof JobsIndexRoute
'/projects': typeof ProjectsIndexRoute
'/jobs/bodhi/$id': typeof JobsBodhiIdRoute
'/jobs/copr/$id': typeof JobsCoprIdRoute
'/jobs/koji-downstream/$id': typeof JobsKojiDownstreamIdRoute
'/jobs/koji/$id': typeof JobsKojiIdRoute
'/jobs/propose-downstream/$id': typeof JobsProposeDownstreamIdRoute
'/jobs/pull-from-upstream/$id': typeof JobsPullFromUpstreamIdRoute
'/jobs/srpm/$id': typeof JobsSrpmIdRoute
'/jobs/testing-farm/$id': typeof JobsTestingFarmIdRoute
'/projects/$forge/$namespace': typeof ProjectsForgeNamespaceLazyRoute
'/projects/$forge/$namespace/$repo': typeof ProjectsForgeNamespaceRepoRoute
}

export interface FileRoutesByTo {
'/': typeof IndexRoute
'/pipeline': typeof PipelineRoute
'/pipelines': typeof PipelinesRoute
'/results': typeof ResultsRoute
'/usage': typeof UsageRoute
'/jobs/bodhi': typeof JobsBodhiRoute
'/jobs/bodhi-updates': typeof JobsBodhiUpdatesRoute
'/jobs/copr': typeof JobsCoprRoute
'/jobs/copr-builds': typeof JobsCoprBuildsRoute
'/jobs/downstream-koji-builds': typeof JobsDownstreamKojiBuildsRoute
'/jobs/koji': typeof JobsKojiRoute
'/jobs/koji-builds': typeof JobsKojiBuildsRoute
'/jobs/koji-downstream': typeof JobsKojiDownstreamRoute
'/jobs/propose-downstream': typeof JobsProposeDownstreamRoute
'/jobs/propose-downstreams': typeof JobsProposeDownstreamsRoute
'/jobs/pull-from-upstream': typeof JobsPullFromUpstreamRoute
'/jobs/pull-from-upstreams': typeof JobsPullFromUpstreamsRoute
'/jobs/srpm': typeof JobsSrpmRoute
'/jobs/srpm-builds': typeof JobsSrpmBuildsRoute
'/jobs/testing-farm': typeof JobsTestingFarmRoute
'/jobs/testing-farm-runs': typeof JobsTestingFarmRunsRoute
'/pipeline/$id': typeof PipelineIdRoute
'/projects/$forge': typeof ProjectsForgeLazyRoute
'/jobs': typeof JobsIndexRoute
'/projects': typeof ProjectsIndexRoute
'/jobs/bodhi/$id': typeof JobsBodhiIdRoute
'/jobs/copr/$id': typeof JobsCoprIdRoute
'/jobs/koji-downstream/$id': typeof JobsKojiDownstreamIdRoute
'/jobs/koji/$id': typeof JobsKojiIdRoute
'/jobs/propose-downstream/$id': typeof JobsProposeDownstreamIdRoute
'/jobs/pull-from-upstream/$id': typeof JobsPullFromUpstreamIdRoute
'/jobs/srpm/$id': typeof JobsSrpmIdRoute
'/jobs/testing-farm/$id': typeof JobsTestingFarmIdRoute
'/projects/$forge/$namespace': typeof ProjectsForgeNamespaceLazyRoute
'/projects/$forge/$namespace/$repo': typeof ProjectsForgeNamespaceRepoRoute
}

export interface FileRoutesById {
__root__: typeof rootRoute
'/': typeof IndexRoute
'/jobs': typeof JobsRouteWithChildren
'/pipeline': typeof PipelineRoute
'/pipelines': typeof PipelinesRoute
'/results': typeof ResultsRoute
'/usage': typeof UsageRoute
'/jobs/bodhi': typeof JobsBodhiRoute
'/jobs/bodhi-updates': typeof JobsBodhiUpdatesRoute
'/jobs/copr': typeof JobsCoprRoute
'/jobs/copr-builds': typeof JobsCoprBuildsRoute
'/jobs/downstream-koji-builds': typeof JobsDownstreamKojiBuildsRoute
'/jobs/koji': typeof JobsKojiRoute
'/jobs/koji-builds': typeof JobsKojiBuildsRoute
'/jobs/koji-downstream': typeof JobsKojiDownstreamRoute
'/jobs/propose-downstream': typeof JobsProposeDownstreamRoute
'/jobs/propose-downstreams': typeof JobsProposeDownstreamsRoute
'/jobs/pull-from-upstream': typeof JobsPullFromUpstreamRoute
'/jobs/pull-from-upstreams': typeof JobsPullFromUpstreamsRoute
'/jobs/srpm': typeof JobsSrpmRoute
'/jobs/srpm-builds': typeof JobsSrpmBuildsRoute
'/jobs/testing-farm': typeof JobsTestingFarmRoute
'/jobs/testing-farm-runs': typeof JobsTestingFarmRunsRoute
'/pipeline/$id': typeof PipelineIdRoute
'/projects/$forge': typeof ProjectsForgeLazyRoute
'/jobs/': typeof JobsIndexRoute
'/projects/': typeof ProjectsIndexRoute
'/jobs/bodhi/$id': typeof JobsBodhiIdRoute
'/jobs/copr/$id': typeof JobsCoprIdRoute
'/jobs/koji-downstream/$id': typeof JobsKojiDownstreamIdRoute
'/jobs/koji/$id': typeof JobsKojiIdRoute
'/jobs/propose-downstream/$id': typeof JobsProposeDownstreamIdRoute
'/jobs/pull-from-upstream/$id': typeof JobsPullFromUpstreamIdRoute
'/jobs/srpm/$id': typeof JobsSrpmIdRoute
'/jobs/testing-farm/$id': typeof JobsTestingFarmIdRoute
'/projects/$forge/$namespace': typeof ProjectsForgeNamespaceLazyRoute
'/projects/$forge/$namespace/$repo': typeof ProjectsForgeNamespaceRepoRoute
}

export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths:
| '/'
| '/jobs'
| '/pipeline'
| '/pipelines'
| '/results'
| '/usage'
| '/jobs/bodhi'
| '/jobs/bodhi-updates'
| '/jobs/copr'
| '/jobs/copr-builds'
| '/jobs/downstream-koji-builds'
| '/jobs/koji'
| '/jobs/koji-builds'
| '/jobs/koji-downstream'
| '/jobs/propose-downstream'
| '/jobs/propose-downstreams'
| '/jobs/pull-from-upstream'
| '/jobs/pull-from-upstreams'
| '/jobs/srpm'
| '/jobs/srpm-builds'
| '/jobs/testing-farm'
| '/jobs/testing-farm-runs'
| '/pipeline/$id'
| '/projects/$forge'
| '/jobs/'
| '/projects'
| '/jobs/bodhi/$id'
| '/jobs/copr/$id'
| '/jobs/koji-downstream/$id'
| '/jobs/koji/$id'
| '/jobs/propose-downstream/$id'
| '/jobs/pull-from-upstream/$id'
| '/jobs/srpm/$id'
| '/jobs/testing-farm/$id'
| '/projects/$forge/$namespace'
| '/projects/$forge/$namespace/$repo'
fileRoutesByTo: FileRoutesByTo
to:
| '/'
| '/pipeline'
| '/pipelines'
| '/results'
| '/usage'
| '/jobs/bodhi'
| '/jobs/bodhi-updates'
| '/jobs/copr'
| '/jobs/copr-builds'
| '/jobs/downstream-koji-builds'
| '/jobs/koji'
| '/jobs/koji-builds'
| '/jobs/koji-downstream'
| '/jobs/propose-downstream'
| '/jobs/propose-downstreams'
| '/jobs/pull-from-upstream'
| '/jobs/pull-from-upstreams'
| '/jobs/srpm'
| '/jobs/srpm-builds'
| '/jobs/testing-farm'
| '/jobs/testing-farm-runs'
| '/pipeline/$id'
| '/projects/$forge'
| '/jobs'
| '/projects'
| '/jobs/bodhi/$id'
| '/jobs/copr/$id'
| '/jobs/koji-downstream/$id'
| '/jobs/koji/$id'
| '/jobs/propose-downstream/$id'
| '/jobs/pull-from-upstream/$id'
| '/jobs/srpm/$id'
| '/jobs/testing-farm/$id'
| '/projects/$forge/$namespace'
| '/projects/$forge/$namespace/$repo'
id:
| '__root__'
| '/'
| '/jobs'
| '/pipeline'
| '/pipelines'
| '/results'
| '/usage'
| '/jobs/bodhi'
| '/jobs/bodhi-updates'
| '/jobs/copr'
| '/jobs/copr-builds'
| '/jobs/downstream-koji-builds'
| '/jobs/koji'
| '/jobs/koji-builds'
| '/jobs/koji-downstream'
| '/jobs/propose-downstream'
| '/jobs/propose-downstreams'
| '/jobs/pull-from-upstream'
| '/jobs/pull-from-upstreams'
| '/jobs/srpm'
| '/jobs/srpm-builds'
| '/jobs/testing-farm'
| '/jobs/testing-farm-runs'
| '/pipeline/$id'
| '/projects/$forge'
| '/jobs/'
| '/projects/'
| '/jobs/bodhi/$id'
| '/jobs/copr/$id'
| '/jobs/koji-downstream/$id'
| '/jobs/koji/$id'
| '/jobs/propose-downstream/$id'
| '/jobs/pull-from-upstream/$id'
| '/jobs/srpm/$id'
| '/jobs/testing-farm/$id'
| '/projects/$forge/$namespace'
| '/projects/$forge/$namespace/$repo'
fileRoutesById: FileRoutesById
}

export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
JobsRoute: typeof JobsRouteWithChildren
PipelineRoute: typeof PipelineRoute
PipelinesRoute: typeof PipelinesRoute
ResultsRoute: typeof ResultsRoute
UsageRoute: typeof UsageRoute
PipelineIdRoute: typeof PipelineIdRoute
ProjectsForgeLazyRoute: typeof ProjectsForgeLazyRoute
ProjectsIndexRoute: typeof ProjectsIndexRoute
JobsBodhiIdRoute: typeof JobsBodhiIdRoute
JobsCoprIdRoute: typeof JobsCoprIdRoute
JobsKojiDownstreamIdRoute: typeof JobsKojiDownstreamIdRoute
JobsKojiIdRoute: typeof JobsKojiIdRoute
JobsProposeDownstreamIdRoute: typeof JobsProposeDownstreamIdRoute
JobsPullFromUpstreamIdRoute: typeof JobsPullFromUpstreamIdRoute
JobsSrpmIdRoute: typeof JobsSrpmIdRoute
JobsTestingFarmIdRoute: typeof JobsTestingFarmIdRoute
ProjectsForgeNamespaceLazyRoute: typeof ProjectsForgeNamespaceLazyRoute
ProjectsForgeNamespaceRepoRoute: typeof ProjectsForgeNamespaceRepoRoute
}

const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
JobsRoute: JobsRouteWithChildren,
PipelineRoute: PipelineRoute,
PipelinesRoute: PipelinesRoute,
ResultsRoute: ResultsRoute,
UsageRoute: UsageRoute,
PipelineIdRoute: PipelineIdRoute,
ProjectsForgeLazyRoute: ProjectsForgeLazyRoute,
ProjectsIndexRoute: ProjectsIndexRoute,
JobsBodhiIdRoute: JobsBodhiIdRoute,
JobsCoprIdRoute: JobsCoprIdRoute,
JobsKojiDownstreamIdRoute: JobsKojiDownstreamIdRoute,
JobsKojiIdRoute: JobsKojiIdRoute,
JobsProposeDownstreamIdRoute: JobsProposeDownstreamIdRoute,
JobsPullFromUpstreamIdRoute: JobsPullFromUpstreamIdRoute,
JobsSrpmIdRoute: JobsSrpmIdRoute,
JobsTestingFarmIdRoute: JobsTestingFarmIdRoute,
ProjectsForgeNamespaceLazyRoute: ProjectsForgeNamespaceLazyRoute,
ProjectsForgeNamespaceRepoRoute: ProjectsForgeNamespaceRepoRoute,
}

export const routeTree = rootRoute
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()

/* prettier-ignore-end */

Expand Down

0 comments on commit 5dd464e

Please sign in to comment.