{"id":22399913,"url":"https://github.com/laugharne/abf_anchor_build_fixer","last_synced_at":"2026-04-18T04:32:20.133Z","repository":{"id":227491730,"uuid":"771188389","full_name":"Laugharne/abf_anchor_build_fixer","owner":"Laugharne","description":"The first build with Anchor can be challenging, especially for those who are not familiar with Rust compilations and Anchor environnement.  This script which overlays Anchor calls (cli commands), tries to automaticaly fix the build issues you are most likely to encounter as best as it can.","archived":false,"fork":false,"pushed_at":"2024-05-14T12:51:08.000Z","size":1236,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T00:16:58.680Z","etag":null,"topics":["anchor","bash","bash-script","cargo","rust","script","solana"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Laugharne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-12T21:07:15.000Z","updated_at":"2024-05-14T12:51:12.000Z","dependencies_parsed_at":"2024-03-13T16:27:55.535Z","dependency_job_id":"6baa5f5e-1b8c-4b5b-9e74-0a6781781b40","html_url":"https://github.com/Laugharne/abf_anchor_build_fixer","commit_stats":null,"previous_names":["laugharne/abf_anchor_build_fixer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Laugharne/abf_anchor_build_fixer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laugharne%2Fabf_anchor_build_fixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laugharne%2Fabf_anchor_build_fixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laugharne%2Fabf_anchor_build_fixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laugharne%2Fabf_anchor_build_fixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Laugharne","download_url":"https://codeload.github.com/Laugharne/abf_anchor_build_fixer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laugharne%2Fabf_anchor_build_fixer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31956866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anchor","bash","bash-script","cargo","rust","script","solana"],"created_at":"2024-12-05T08:10:30.217Z","updated_at":"2026-04-18T04:32:20.116Z","avatar_url":"https://github.com/Laugharne.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Anchor Build fixer\n\n![](assets/pexels-tara-winstead-7722845.jpg)\n(*[Tara Winstead - Pexels](https://www.pexels.com/@tara-winstead/)*)\n\n--------\n\n\u003c!-- TOC --\u003e\n\n- [Anchor Build fixer](#anchor-build-fixer)\n\t- [🔭 Overview](#-overview)\n\t- [🕑 Current versions](#-current-versions)\n\t- [📦 Installation](#-installation)\n\t- [🚀 How to run](#-how-to-run)\n\t\t- [💻 Usage](#-usage)\n\t\t- [✏️ Commands](#-commands)\n\t- [📚 Additional resources](#-additional-resources)\n\n\u003c!-- /TOC --\u003e\n\n--------\n\n## 🔭 Overview\n\nThe **first build** with Anchor can be challenging, especially for those who are not familiar with Rust compilations and Anchor environnement.\n\nThis script (`\"abf.sh\"`) which overlays **Anchor** calls (*cli commands*), tries to dynamicaly fix the build issues you are most likely to encounter as best as it can.\n\nIt defines several functions in **Bash** to handle building and fixing errors in an **Anchor project**. It includes color-coded output and error handling. Each function is documented with comments to explain its purpose and usage.\n\n\u003e This project is currently a **work in progress** and may not be ready for production use !\n\n\n## 🕑 Current versions\n\nI actually build **Anchor projects** with the following versions of OS and tools:\n\n| Tools      | Versions                    |\n| ---------- | --------------------------- |\n| **OS**     | `Ubuntu 22.04.2 LTS x86_64` |\n| **rustc**  | `1.77.1`                    |\n| **cargo**  | `1.77.1`                    |\n| **solana** | `1.17.4`                    |\n| **node**   | `18.16.0`                   |\n| **anchor** | `0.29.0`                    |\n\n\n## 📦 Installation\n\n- **bash**: `cat abf.sh \u003e\u003e ~/.bashrc` or `cat abf.sh \u003e\u003e ~/.bash_functions`\n- **zsh**: `cat alias.sh \u003e\u003e ~/.zshrc`\n\n## 🚀 How to run\n\nGo into your projects directory, then type `abf init \u003cPROJECT_NAME\u003e` to create project sub-directory `\u003cPROJECT_NAME\u003e`.\n\n\n### 💻 Usage\n\n`abf \u003ccommand\u003e \u003cOPTIONAL_PARAMETER\u003e`\n\n\n### ✏️ Commands\n\n| Command      | Description             | Parameter              |\n| :----------- | :---------------------- | :--------------------- |\n| `init`, `i`  | Initializes a workspace | `\u003cPROJECT_NAME\u003e` *(1)* |\n| `build`, `b` | Build a workspace       | none                   |\n| `version`    | Print 'abf' version     | none                   |\n| `versions`   | Print assets versions   | none                   |\n| `help`       | Print help message      | none                   |\n\n- *(1) : mandatory*\n\n\n## 📚 Additional resources\n\n- [Solana Hello World (Installation and Troubleshooting)](https://www.rareskills.io/post/hello-world-solana)\n- [anchor build isn't working properly - Solana Stack Exchange](https://solana.stackexchange.com/questions/2770/anchor-build-isnt-working-properly)\n- [solana - Anchor build failure - Stack Overflow](https://stackoverflow.com/questions/73360283/anchor-build-failure)\n- [anchor build failed - Solana Stack Exchange](https://solana.stackexchange.com/questions/6853/anchor-build-failed)\n- [cargo - Anchor Build Depenedency error - Solana Stack Exchange](https://solana.stackexchange.com/questions/670/anchor-build-depenedency-error?rq=1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaugharne%2Fabf_anchor_build_fixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaugharne%2Fabf_anchor_build_fixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaugharne%2Fabf_anchor_build_fixer/lists"}