casey / casey/just

Add optional architecture attribution to receipt attribute annotations

Open
#1,642 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
35.8k
Forks
846
Avg merge
27m
Merged PRs (30d)
3

Description

**What are you trying to do?**
I would like to distinguish between macos on an arm architecture (M1 silicone) versus macos on an x86 via the receipt attributes

**What's your proposed solution?**
Something like this:

```text
[macos]
foo:
echo "running on a mac and don't care about architecture"

[macos(arch(x86_64))]
bar:
echo "running on a mac with x86_64 architecture"

[macos(arch(aarch64))]]
baz:
echo "running on a mac with M1 architecture
```

**Additional context**
The capability should be able to leverage the existing [system information](https://just.systems/man/en/chapter_31.html?highlight=oper#system-information) functions. If this can be done then any mix of operating system receipt attributes and system information functions could be used.

Contributor guide

Open the contributing guide

Research direction

Start by reading the receipt attribute annotation handling and the linked system information documentation, focusing on how operating-system attributes and system information functions are represented. Done should include optional architecture-qualified macOS attributes, support for the proposed combinations, and preservation of existing unqualified attributes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.