Commit Graph

13 Commits

Author SHA1 Message Date
José Ribeiro
e4fb7a535f
granted: 0.36.2 -> 0.36.3
Diff: https://github.com/common-fate/granted/compare/v0.36.2...v0.36.3
Changelog: https://github.com/common-fate/granted/releases/tag/v0.36.3
2024-11-13 02:14:57 +00:00
José Ribeiro
4f454cef55
granted: 0.36.1 -> 0.36.2
Diff: https://github.com/common-fate/granted/compare/v0.36.1...v0.36.2
Changelog: https://github.com/common-fate/granted/releases/tag/v0.36.2
2024-11-13 02:13:29 +00:00
José Ribeiro
1af3b8486f
granted: 0.36.0 -> 0.36.1
Diff: https://github.com/common-fate/granted/compare/v0.36.0...v0.36.1
Changelog: https://github.com/common-fate/granted/releases/tag/v0.36.1
2024-11-08 17:09:57 +00:00
José Ribeiro
0ae04baf29
granted: 0.35.2 -> 0.36.0
Diff: https://github.com/common-fate/granted/compare/v0.35.2...v0.36.0
Changelog: https://github.com/common-fate/granted/releases/tag/v0.36.0
2024-11-05 00:47:28 +00:00
José Ribeiro
1cf977bad5
granted: 0.35.1 -> 0.35.2
Diff: https://github.com/common-fate/granted/compare/v0.35.1...v0.35.2
Changelog: https://github.com/common-fate/granted/releases/tag/v0.35.2
2024-10-21 14:04:09 +01:00
José Ribeiro
9d47ed157c
granted: 0.35.0 -> 0.35.1
Diff: https://github.com/common-fate/granted/compare/v0.35.0...v0.35.1
Changelog: https://github.com/common-fate/granted/releases/tag/v0.35.1
2024-10-21 06:53:01 +01:00
José Ribeiro
32656bcd29
granted: 0.34.1 -> 0.35.0
Diff: https://github.com/common-fate/granted/compare/v0.34.1...v0.35.0
Changelog: https://github.com/common-fate/granted/releases/tag/v0.35.0
2024-10-21 06:53:00 +01:00
José Ribeiro
a40bac7fd1
granted: add jlbribeiro as maintainer
Removes @ivankovnatsky as maintainer following
https://github.com/NixOS/nixpkgs/pull/347364#pullrequestreview-2357233641
2024-10-21 06:53:00 +01:00
José Ribeiro
b74384f636
granted: add versionCheckHook 2024-10-21 06:53:00 +01:00
José Ribeiro
b7b77c5f95
granted: set updateScript 2024-10-21 06:53:00 +01:00
José Ribeiro
a34f215769
granted: format using nixfmt 2024-10-21 06:52:54 +01:00
Matthew Kenigsberg
2fc61b161d
granted: fix wrapping of assume script
This fixes a few problems with the assume script in the granted package.

- assume is currently being exec'ed by a wrapper script created with
  wrapProgram, but it should be sourced. This causes the error:
```
line 172: return: can only `return' from a function or sourced script
```

- assume inspects argv[0] to check if an alias has been added to the
  user's shell profile. This means a wrapper of any kind won't work,
  even if it called source instead of exec, because source will still
  set argv[0]. This means assume always tries to add the alias, but it
  fails when it has already added the alias.
```
[i] To assume roles with Granted, we need to add an alias to your shell profile (https://docs.commonfate.io/granted/internals/shell-alias)
? Install zsh alias at /Users/matthew/.zshenv Yes

[✘] the Granted alias has already been added to /Users/matthew/.zshenv
```

- assume depends on assumego, so if it is run directly from e.g. a
  result directory created with `nix build`, it will output
```
line 22: assumego: command not found
```

Fix all of these problems by dropping the wrapper around assume, and
instead insert a few lines into the start of the assume script that add
xdg-utils and granted to assume's PATH.
2024-10-11 08:07:43 -06:00
Ivan Kovnatsky
f3f69171dd
treewide: migrate packages maintained by ivankovnatsky to by-name 2024-10-04 16:31:04 +03:00