Skip to content

Commit

Permalink
Update version stamping for rdctl
Browse files Browse the repository at this point in the history
Closes rancher-sandbox#5808

Signed-off-by: Carlos Barcenilla <[email protected]>
  • Loading branch information
bcxpro committed Feb 25, 2025
1 parent a48666d commit 396b566
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions scripts/dependencies/go-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,12 @@ export class GoDependency implements Dependency {
}

export class RDCtl extends GoDependency {
constructor() {
super('rdctl');
constructor(version: string) {
super('rdctl', {
outputPath: 'bin',
modulePath: 'github.com/rancher-sandbox/rancher-desktop/src/go/rdctl',
version,
});
}

dependencies(context: DownloadContext): string[] {
Expand Down
4 changes: 2 additions & 2 deletions scripts/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const userTouchedDependencies = [
new tools.DockerProvidedCredHelpers(),
new tools.ECRCredHelper(),
new tools.SpinCLI(),
new goUtils.RDCtl(),
new goUtils.RDCtl(versionToStamp),
new goUtils.GoDependency('docker-credential-none'),
];

Expand Down Expand Up @@ -76,7 +76,7 @@ const windowsDependencies = [
// Dependencies that are specific to WSL.
const wslDependencies = [
new Moproxy(),
new goUtils.RDCtl(),
new goUtils.RDCtl(versionToStamp),
new goUtils.GoDependency('guestagent', 'staging'),
new goUtils.GoDependency('networking/cmd/vm', 'staging/vm-switch'),
new goUtils.GoDependency('networking/cmd/network', 'staging/network-setup'),
Expand Down

0 comments on commit 396b566

Please sign in to comment.