Repository navigation
Support for eget and packages #15
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
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
b58f9a5
Add eget installation tasks and update README with new tags
kenorb 4992421
Enhance eget package management by adding new packages and updating i…
kenorb 1edb821
Add .eget.toml configuration file
kenorb 0390fa8
Add .markdown-link-check.json configuration file
kenorb cccc3c1
Delete .github/workflows/reviewdog.yml
kenorb e910c31
Add .env file with locale settings
kenorb c12a912
Add eget feature to devcontainer configuration
kenorb e67f739
Add .eget.toml configuration file and symlink to dotfiles
kenorb 0b5cf79
Add pattern to ignore GitHub releases in markdown link check
kenorb e6b9899
Add .lycheeignore file and remove .markdown-link-check.json
kenorb d520210
Add .markdown-link-check.json configuration file
kenorb 6da7482
Add task to ensure ~/.local/bin directory exists for eget installation
kenorb 9fced07
Add architecture-aware package mapping for eget installation
kenorb 9e7d478
Update paths to use ansible_user_dir instead of lookup for HOME in do…
kenorb 8bef068
Idempotency check may not find the installed binary.
kenorb 38a74f5
Fix regex for eget version extraction to remove leading 'v'.
kenorb 205d957
Replace ogham/exa with maintained eza (eza-community/eza)
kenorb 5ad1065
Update paths to use ansible_facts['user_dir'] for consistency in dotf…
kenorb cac4097
Refactor README.md for clarity and conciseness in Ansible setup instr…
kenorb c146596
Add alpha-miner to eget package mapping and variables example
kenorb 6f50858
Fix pre-commit, links, and eget setup.
opencode-agent[bot] dac40d7
Revert "Fix pre-commit, links, and eget setup."
opencode-agent[bot] 330166b
Fix pre-commit formatting and links
opencode-agent[bot] cba8623
Restored link configs and placeholders.
opencode-agent[bot] 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| --- | ||
| - name: Ensure ~/.local/bin exists | ||
| ansible.builtin.file: | ||
| path: "{{ ansible_facts['user_dir'] }}/.local/bin" | ||
| state: directory | ||
| mode: '0755' | ||
|
|
||
| - name: Check if eget is already installed | ||
| ansible.builtin.stat: | ||
| path: "{{ ansible_facts['user_dir'] }}/.local/bin/eget" | ||
| register: eget_stat | ||
|
|
||
| - name: Get latest release of eget | ||
| ansible.builtin.uri: | ||
| url: https://api.github.com/repos/zyedidia/eget/releases/latest | ||
| return_content: true | ||
| register: eget_latest | ||
| when: not eget_stat.stat.exists | ||
|
|
||
| - name: Set eget facts | ||
| ansible.builtin.set_fact: | ||
| eget_version: "{{ eget_latest.json.tag_name | regex_replace('^v', '') }}" | ||
| eget_platform: >- | ||
| linux_{{ | ||
| 'amd64' if ansible_facts['architecture'] == 'x86_64' | ||
| else 'arm64' if ansible_facts['architecture'] == 'aarch64' | ||
| else 'arm' | ||
| }} | ||
| when: not eget_stat.stat.exists | ||
|
|
||
| - name: Create temporary directory for eget | ||
| ansible.builtin.tempfile: | ||
| state: directory | ||
| suffix: eget | ||
| register: eget_tmp | ||
| when: not eget_stat.stat.exists | ||
|
|
||
| - name: Download and extract eget | ||
| ansible.builtin.unarchive: | ||
| src: >- | ||
| https://github.com/zyedidia/eget/releases/download/v{{ eget_version }}/eget-{{ | ||
| eget_version }}-{{ eget_platform }}.tar.gz | ||
| dest: "{{ eget_tmp.path }}" | ||
| remote_src: true | ||
| extra_opts: | ||
| - "--strip-components=1" | ||
| - "eget-{{ eget_version }}-{{ eget_platform }}/eget" | ||
| when: not eget_stat.stat.exists | ||
|
|
||
| - name: Install eget to ~/.local/bin | ||
| ansible.builtin.copy: | ||
| src: "{{ eget_tmp.path }}/eget" | ||
| dest: "{{ ansible_facts['user_dir'] }}/.local/bin/eget" | ||
| mode: '0755' | ||
| remote_src: true | ||
| when: not eget_stat.stat.exists | ||
|
|
||
| - name: Cleanup temporary directory | ||
| ansible.builtin.file: | ||
| path: "{{ eget_tmp.path }}" | ||
| state: absent | ||
| when: not eget_stat.stat.exists and eget_tmp.path is defined | ||
|
|
||
| - name: Define eget package mapping | ||
| ansible.builtin.set_fact: | ||
| eget_arch: >- | ||
| {{ 'x86_64' if ansible_facts['architecture'] == 'x86_64' | ||
| else 'arm64' if ansible_facts['architecture'] == 'aarch64' | ||
| else 'arm' }} | ||
| eget_plain_arch: "{{ ansible_facts['architecture'] }}" | ||
|
|
||
| - name: Set architecture-aware package mappings | ||
| ansible.builtin.set_fact: | ||
| eget_package_map: | ||
| alpha-miner: "-a .tar.gz --file alpha/alpha --tag v1.7.5-beta --to alpha-miner AlphaMine-Tech/alpha-miner" | ||
| bat: >- | ||
| -a {{ eget_arch }}-unknown-linux-{{ 'gnu' if eget_arch == 'x86_64' else 'musl' }} | ||
| -a tar.gz sharkdp/bat | ||
| btop: "-a btop-{{ eget_plain_arch }}-unknown-linux-musl.tar.gz aristocratos/btop" | ||
| duf: "-a linux_{{ eget_arch }}.tar.gz muesli/duf" | ||
| eza: "-a {{ eget_plain_arch }}-unknown-linux-gnu -a ^no_libgit -a tar.gz eza-community/eza" | ||
| fd: "-a {{ eget_arch }}-unknown-linux-gnu -a tar.gz sharkdp/fd" | ||
| jq: >- | ||
| -a {{ 'linux64' if eget_arch == 'x86_64' else 'linux-arm64' if eget_arch == 'arm64' else 'linux-arm' }} | ||
| jqlang/jq | ||
| pandoc: "-a linux-{{ 'amd64' if eget_arch == 'x86_64' else 'arm64' }}.tar.gz jgm/pandoc" | ||
| rg: "-a {{ eget_plain_arch }}-unknown-linux-musl.tar.gz BurntSushi/ripgrep" | ||
| tealdeer: "-a tealdeer-linux-{{ eget_arch }}-musl -a ^sha256 dbrgn/tealdeer" | ||
| vale: "-a {{ 'Linux_64-bit' if eget_arch == 'x86_64' else 'Linux_arm64' }}.tar.gz errata-ai/vale" | ||
| yq: "-a ^.tar.gz mikefarah/yq" | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| - name: Install eget packages | ||
| ansible.builtin.shell: | ||
| cmd: "eget {{ eget_package_map[item] }} && sleep 1" | ||
| creates: "{{ ansible_facts['user_dir'] }}/.local/bin/{{ item }}" | ||
| environment: | ||
| EGET_BIN: "{{ ansible_facts['user_dir'] }}/.local/bin" | ||
| PATH: "{{ ansible_facts['user_dir'] }}/.local/bin:{{ ansible_facts['env']['PATH'] }}" | ||
| loop: "{{ eget_packages | default([]) }}" | ||
| register: eget_install_results | ||
| changed_when: "'Downloaded' in eget_install_results.stdout or 'Extracted' in eget_install_results.stdout" | ||
| when: eget_packages is defined and item in eget_package_map | ||
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,3 @@ | ||
| [global] | ||
| target = "~/.local/bin" | ||
| upgrade_only = true | ||
|
kenorb 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
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,3 @@ | ||
| [global] | ||
| target = "~/.local/bin" | ||
| upgrade_only = true |
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,2 @@ | ||
| LANG=en_US.UTF-8 | ||
| LC_ALL=en_US.UTF-8 |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
| # Lychee config to exclude links | ||
| # @docs: <https://lychee.cli.rs/recipes/excluding-links/> | ||
| # Keep the order sorted. | ||
|
|
||
| ^https?://127\.0\.0\.1 | ||
| ^https?://example\.com | ||
| ^https?://localhost | ||
|
|
||
| # Placeholders and templates | ||
| ^https://github\.com/org/repo | ||
| ^https://github\.com/zyedidia/eget/releases/download/v |
|
kenorb 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,32 @@ | ||
| { | ||
| "aliveStatusCodes": [200, 206], | ||
| "ignorePatterns": [ | ||
| { | ||
| "pattern": "^http://localhost" | ||
| }, | ||
| { | ||
| "pattern": "^https://localhost" | ||
| }, | ||
| { | ||
| "pattern": "^http://127.0.0.1" | ||
| }, | ||
| { | ||
| "pattern": "^https://127.0.0.1" | ||
| }, | ||
| { | ||
| "pattern": "^http://example.com" | ||
| }, | ||
| { | ||
| "pattern": "^https://example.com" | ||
| }, | ||
| { | ||
| "pattern": "^https://github.com/org/repo" | ||
| }, | ||
| { | ||
| "pattern": "^https://github.com/zyedidia/eget/releases/download/v" | ||
| } | ||
| ], | ||
| "retryCount": 3, | ||
| "retryOn429": true, | ||
| "timeout": "10s" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.