File tree Expand file tree Collapse file tree 9 files changed +22
-22
lines changed Expand file tree Collapse file tree 9 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 26
26
run : cargo doc --no-deps
27
27
28
28
- name : Add redirect
29
- run : echo '<meta http-equiv="refresh" content="0;url=graphsync /index.html">' > target/doc/index.html
29
+ run : echo '<meta http-equiv="refresh" content="0;url=graphana-sync /index.html">' > target/doc/index.html
30
30
31
31
- name : Remove lock file
32
32
run : rm target/doc/.lock
Original file line number Diff line number Diff line change 27
27
28
28
- name : Archive binary
29
29
run : |
30
- BIN=graphsync
31
- TAR=graphsync -${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
30
+ BIN=grafana-sync
31
+ TAR=grafana-sync -${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
32
32
mkdir out
33
33
cp target/${{ matrix.target }}/release/$BIN out/
34
34
tar czf $TAR -C out $BIN
37
37
uses : softprops/action-gh-release@v2
38
38
with :
39
39
token : ${{ secrets.GITHUB_TOKEN }}
40
- files : graphsync -${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
40
+ files : grafana-sync -${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
41
41
- uses : actions/upload-artifact@v4
42
42
if : failure()
43
43
with :
44
44
name : fallback-${{ matrix.target }}
45
- path : graphsync -${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
45
+ path : grafana-sync -${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
Original file line number Diff line number Diff line change 1
1
[package ]
2
- name = " graphsync "
2
+ name = " grafana-sync "
3
3
version = " 0.1.0"
4
4
edition = " 2021"
5
5
Original file line number Diff line number Diff line change 7
7
8
8
with lib ;
9
9
let
10
- cfg = config . services . graphsync ;
10
+ cfg = config . services . grafana-sync ;
11
11
12
- graphsync = pkgs . callPackage ./package.nix { } ;
12
+ grafana-sync = pkgs . callPackage ./package.nix { } ;
13
13
in
14
14
{
15
15
options = {
16
- services . graphsync = {
17
- enable = mkEnableOption "GraphSync " ;
16
+ services . grafana-sync = {
17
+ enable = mkEnableOption "Grafana Sync " ;
18
18
configFile = mkOption {
19
19
description = ''
20
20
YAML formatted config file in the following format:
33
33
} ;
34
34
} ;
35
35
config = {
36
- users . users . "graphsync " . isNormalUser = true ;
36
+ users . users . "grafana-sync " . isNormalUser = true ;
37
37
38
- systemd . services . graphsync = {
38
+ systemd . services . grafana-sync = {
39
39
after = [ "network.target" ] ;
40
40
wantedBy = [ "multi-user.target" ] ;
41
- description = "GraphSync Grafana Syncing Service" ;
41
+ description = "Grafana Syncing Service" ;
42
42
serviceConfig = {
43
43
Type = "simple" ;
44
- ExecStart = "${ graphsync } /bin/graphsync ${ cfg . configFile } " ;
44
+ ExecStart = "${ grafana-sync } /bin/grafana-sync ${ cfg . configFile } " ;
45
45
Restart = "on-failure" ;
46
46
RestartSec = 5 ;
47
- User = "graphsync " ;
47
+ User = "grafana-sync " ;
48
48
} ;
49
49
} ;
50
50
} ;
Original file line number Diff line number Diff line change 1
1
{
2
- description = "graphsync flake" ;
2
+ description = "grafana-sync flake" ;
3
3
4
4
inputs = {
5
5
nixpkgs . url = "github:nixos/nixpkgs?ref=nixos-unstable" ;
Original file line number Diff line number Diff line change 6
6
} :
7
7
8
8
rustPlatform . buildRustPackage {
9
- pname = "graphsync " ;
9
+ pname = "grafana-sync " ;
10
10
version = "0.1.0" ;
11
11
12
12
src = ./. ;
@@ -23,7 +23,7 @@ rustPlatform.buildRustPackage {
23
23
#installPhase = ''
24
24
# runHook preInstall
25
25
# mkdir -p $out/bin
26
- # mv target/release/graphsync $out/bin
26
+ # mv target/release/grafana-sync $out/bin
27
27
# runHook postInstall
28
28
#'';
29
29
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ impl GrafanaInstance {
45
45
let client = self . client ( ) ;
46
46
47
47
let folder_body = FolderBody {
48
- description : "autogenerated by graphsync " . to_string ( ) ,
48
+ description : "autogenerated by grafana-sync " . to_string ( ) ,
49
49
title : title. to_string ( ) ,
50
50
// Could sync uid, but these folders might already exist so we're using a random one here
51
51
// since it's not a reliable metric anyway
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ mod service;
16
16
#[ tokio:: main]
17
17
async fn main ( ) {
18
18
match run ( ) . await {
19
- Err ( e) => error ! ( "GraphSync exited with error: {}" , e) ,
19
+ Err ( e) => error ! ( "Grafana Sync exited with error: {}" , e) ,
20
20
_ => info ! ( "Exiting." ) ,
21
21
}
22
22
}
You can’t perform that action at this time.
0 commit comments