Repository navigation
feat: add aube #7162
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
jonahsnider
wants to merge
9
commits into
containerbase:main
Choose a base branch
from
jonahsnider:aube
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: add aube #7162
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9189541
feat: add aube
jonahsnider 9e52792
feat: update aube to v1.41.0
jonahsnider 1d0db82
fix: validate aube checksum
jonahsnider 4a023e1
fix: remove WORKDIR and condense Dockerfiles
jonahsnider ab50379
fix: install a dependency with aube
jonahsnider 39873a7
refactor(aube): remove GitHub checksum checks
jonahsnider 6d2b45b
test(aube): move tests to test/node and improve --ignore-scripts check
jonahsnider fa78df6
fix(aube): add aube to tool metadata list
jonahsnider 30b440f
test(aube): fix postinstall script test
jonahsnider File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| import fs from 'node:fs/promises'; | ||
| import { join } from 'node:path'; | ||
| import { injectFromHierarchy, injectable } from 'inversify'; | ||
| import { BaseInstallService } from '../install-tool/base-install.service.ts'; | ||
|
|
||
| @injectable() | ||
| @injectFromHierarchy() | ||
| export class AubeInstallService extends BaseInstallService { | ||
| readonly name = 'aube'; | ||
|
|
||
| private get ghArch(): string { | ||
| switch (this.envSvc.arch) { | ||
| case 'arm64': | ||
| return 'aarch64'; | ||
| case 'amd64': | ||
| return 'x86_64'; | ||
| } | ||
| } | ||
|
|
||
| override async install(version: string): Promise<void> { | ||
| const baseUrl = `https://github.com/jdx/aube/releases/download/v${version}/`; | ||
| const filename = `aube-v${version}-${this.ghArch}-unknown-linux-gnu.tar.gz`; | ||
| const url = `${baseUrl}${filename}`; | ||
|
|
||
| const file = await this.http.download({ url }); | ||
|
|
||
| await this.pathSvc.ensureToolPath(this.name); | ||
|
|
||
| const path = join( | ||
| await this.pathSvc.createVersionedToolPath(this.name, version), | ||
| 'bin', | ||
| ); | ||
| await fs.mkdir(path); | ||
| await this.compress.extract({ file, cwd: path }); | ||
| } | ||
|
|
||
| override async link(version: string): Promise<void> { | ||
| const src = join(this.pathSvc.versionedToolPath(this.name, version), 'bin'); | ||
| await this.shellwrapper({ srcDir: src }); | ||
| } | ||
|
|
||
| override async test(_version: string): Promise<void> { | ||
| await this._spawn(this.name, ['--version']); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
jonahsnider marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "name": "containerbase-aube-test", | ||
| "private": true, | ||
| "scripts": { | ||
| "postinstall": "touch postinstall-ran" | ||
| }, | ||
| "dependencies": { | ||
| "is-number": "7.0.0" | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.