use crate::{
api::artifact::ArtifactSystem::{Aarch64Darwin, Aarch64Linux, X8664Darwin, X8664Linux},
artifact::{language::go::GoBuilder, source::go_tools},
context::ConfigContext,
};
use anyhow::Result;
pub async fn build(context: &mut ConfigContext) -> Result<String> {
let name = "gopls";
let systems = vec![Aarch64Darwin, Aarch64Linux, X8664Darwin, X8664Linux];
GoBuilder::new(name, systems)
.with_alias(format!("{name}:0.29.0"))
.with_build_directory(name)
.with_source(go_tools(name))
.build(context)
.await
}