Coder Social home page Coder Social logo

template-instance's Introduction

Packages in this repository

This repository is a monorepo, meaning it is set up to contain multiple distinct packages, although for now it only contains one.

Package Name Description Subdirectory with README
sourcecred A monolith package containing the CLI that supports instances, our JS library, and all of our supported platform plugins. link

template-instance's People

Contributors

blueridger avatar dependabot[bot] avatar hozzjss avatar meta-dreamer avatar omahs avatar sudokzt avatar teamdandelion avatar topocount avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

template-instance's Issues

Can not distribute grain with " yarn grain"

Hey! I have set up a sourcecred instance and some users have generated some cred. I am trying to distribute some grain to them by using the "yarn grain" command but it returns to me

image

Any advice?

SOURCECRED_GITHUB_TOKEN not matching

So I created a new personal access token with no scopes selected and copied that into the .env file, followed all the steps but running yarn load gave me the error:
sourcecred/github: Error: The token supplied to $SOURCECRED_GITHUB_TOKEN doesn't match any format known to work.

How to point github plugin to another repo other than itself?

Hello, first of all thanks for the work on sourcecred;

Quick question, is there a way to run a sourcecred instance pointing to another repo other than the instance itself?
e.g.:
Forked sourcecred-instance to xyz/sourcecred-instance, but want it to generate an instance of the repo xyz/example-repo instead of watching the commits and PRs with the github plugin of xyz/sourcecred-instance

distribute-grain.yml should be updated with new commands

I have detected that the workflow distribute-grain.yml is not updated with the new commands. It still has old commands such as yarn graph, which is no longer supported. I' ve seen that yarn sourcecred go is may be the substitute for yarn graph and yarn score
Screenshot from 2020-12-14 09-25-45

No outflow from seed; add cred-minting nodes

The proposed solution to the issue does not fix it for me.

Created a github PR and merged, this data can be observed from the yarn sourcecred serve;

Although my user + dependabot appears there, when I run yarn start , the command complains about no nodes:

image

Context: I have only the github plugin enabled, with the token on the .env for a private package with the following permissions on the token:
image

Workflows should be updated (<yarn graph> and <yarn score> are no longer supported)

Hey, since you have removed the command yarn graph from the package.json, should not you update the github workflows files? Im having fails in the workflows now and I gess is because of that.

The new error since the last update appeared is:
Screenshot from 2020-11-09 08-14-45

In the package.json the scripts "graph" and "score" are no longer supported:
Screenshot from 2020-11-09 08-18-09

These scripts (yarn graph and yarn score) are still been used by the workflows:
Screenshot from 2020-11-09 08-19-30

Not updating the cred on local enviroment

Hey, I have set up a sourcecred instance and I have built it successfully. But I have noticed that the cred is not calculated every some hour but it stays the same.
The only "hack" that I found to fix it is t rerun it when I want to update it.
Is any way to fix it and make it automatically?

No plugins configured; Please set up at least one plugin: https://github.com/sourcecred/template-instance#supported-plugins

image
Run yarn sourcecred go
yarn run v1.22.19
$ /home/runner/work/CODE123/CODE123/node_modules/.bin/sourcecred go
No plugins configured; Please set up at least one plugin: https://github.com/sourcecred/template-instance#supported-plugins
GO load
DONE load: 0ms
GO graph
GO writing files
DONE writing files: 1ms
DONE graph: 2ms
GO contributions
GO writing files
DONE writing files: 1ms
DONE contributions: 3ms
GO hybrid
GO hybrid: running credrank
File not found at path: config/weights.json. Defaulting.
File not found at path: config/pluginBudgets.json. Defaulting.
DONE hybrid: running credrank: 2ms
GO hybrid: running credequate
DONE hybrid: running credequate: 1ms
GO hybrid: generating CredGrainView
Error: invalid non-finite input
at weekIntervals (webpack:///./src/core/interval.js?:51:89)
at Function.fromCredGrainViews (webpack:///./src/core/credGrainView.js?:50:274)
at hybridCommand (webpack:///./src/cli/hybrid.js?:13:2874)
at async goCommand (webpack:///./src/cli/go.js?:8:907)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1. @KuraFire @decentralion @s-ben @wchargin @META-DREAMER

what is that mean? what can i do ,plase tell me

Calculate cred through the CLI

can't figure out what this means!

  1. Error: need at least one interval

this happens when running the action:
Generate Cred Instance #1

this also happens locally.

could this have something to do with initializing cred?

running yarn start doesn't work for me, either. i can get the app to run locally with npx sourcecred serve, however, i get this message:
This page is unavailable because Cred information was unable to load. Calculate cred through the CLI in order to use this page.

where are the docs on how to calculate cred through the CLI?

what does this error mean?
2. Error: No outflow from seed; add cred-minting nodes

where is this file?
3. Error: ENOENT: no such file or directory, open

log 3

➜  sourcecred git:(main) ✗ npx sourcecred grain
Error: ENOENT: no such file or directory, open '/Users/b/Public/mondayapps/githuborg/sourcecred/output/credGraph.json.gzip'

here's the full log 1.

Run yarn sourcecred go
  yarn sourcecred go
  yarn sourcecred analysis
  shell: /usr/bin/bash -e {0}
  env:
    SOURCECRED_GITHUB_TOKEN: 
    SOURCECRED_DISCORD_TOKEN: 
yarn run v1.22.11
$ /home/runner/work/sourcecred/sourcecred/node_modules/.bin/sourcecred go
No plugins configured; Please set up at least one plugin: https://github.com/sourcecred/template-instance#supported-plugins
  GO   load
 DONE  load: 1ms
  GO   graph
  GO   writing files
 DONE  writing files: 1ms
 DONE  graph: 6ms
  GO   credrank
  GO   load data
File not found at path: config/weights.json. Defaulting.
File not found at path: config/pluginBudgets.json. Defaulting.
 DONE  load data: 2ms
  GO   run CredRank
Error: need at least one interval
    at Function.new (webpack:///./src/core/credrank/markovProcessGraph.js?:83:431)
    at credrank (webpack:///./src/core/credrank/compute.js?:22:849)
    at credrank (webpack:///./src/api/main/credrank.js?:21:1253)
    at credrankCommand (webpack:///./src/cli/credrank.js?:14:1220)
    at async goCommand (webpack:///./src/cli/go.js?:7:817)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.

full log 2

Run yarn sourcecred go
yarn run v1.22.11
$ /home/runner/work/sourcecred/sourcecred/node_modules/.bin/sourcecred go
  GO   load
  GO   loading sourcecred/discourse
  GO   sourcecred/discourse: discourse
  GO   sourcecred/discourse: discourse/topics
 DONE  sourcecred/discourse: discourse/topics: 12s
  GO   sourcecred/discourse: discourse/likes
 DONE  sourcecred/discourse: discourse/likes: 2078ms
 DONE  sourcecred/discourse: discourse: 14s
 DONE  loading sourcecred/discourse: 14s
 DONE  load: 14s
  GO   graph
  GO   reference detector for sourcecred/discourse
 DONE  reference detector for sourcecred/discourse: 1ms
  GO   generating graph for sourcecred/discourse
 DONE  generating graph for sourcecred/discourse: 9ms
  GO   writing files
 DONE  writing files: 18ms
 DONE  graph: 39ms
  GO   credrank
  GO   load data
File not found at path: config/weights.json. Defaulting.
File not found at path: config/pluginBudgets.json. Defaulting.
 DONE  load data: 9ms
  GO   run CredRank
Error: No outflow from seed; add cred-minting nodes
    at Function.new (webpack:///./src/core/credrank/markovProcessGraph.js?:95:209)
    at credrank (webpack:///./src/core/credrank/compute.js?:22:849)
    at credrank (webpack:///./src/api/main/credrank.js?:21:1253)
    at credrankCommand (webpack:///./src/cli/credrank.js?:14:1220)
    at async goCommand (webpack:///./src/cli/go.js?:7:817)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.

better-sqlite3 error when running Yarn on Github Codespace

Using Github Codespace.
When I run Yarn, I get the following better-sqlite3 installation error:

yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "sourcecred > @date-io/[email protected]" has incorrect peer dependency "[email protected]".
warning "sourcecred > @material-ui/[email protected]" has unmet peer dependency "@date-io/core@^1.3.6".
warning "sourcecred > @material-ui/[email protected]" has unmet peer dependency "prop-types@^15.6.0".
warning "sourcecred > [email protected]" has unmet peer dependency "connected-react-router@^6.5.2".
warning "sourcecred > [email protected]" has unmet peer dependency "final-form@^4.20.2".
warning "sourcecred > [email protected]" has unmet peer dependency "react-final-form@^6.5.2".
warning "sourcecred > [email protected]" has unmet peer dependency "react-redux@^7.1.0".
warning "sourcecred > [email protected]" has unmet peer dependency "redux@^3.7.2 || ^4.0.3".
warning "sourcecred > [email protected]" has unmet peer dependency "redux-saga@^1.0.0".
warning "sourcecred > [email protected]" has unmet peer dependency "@material-ui/styles@^4.11.2".
warning "sourcecred > [email protected]" has unmet peer dependency "final-form@^4.20.2".
warning "sourcecred > [email protected]" has unmet peer dependency "final-form-arrays@^3.0.2".
warning "sourcecred > [email protected]" has unmet peer dependency "react-final-form@^6.5.2".
warning "sourcecred > [email protected]" has unmet peer dependency "react-final-form-arrays@^3.1.3".
warning "sourcecred > [email protected]" has unmet peer dependency "react-redux@^7.1.0".
warning "sourcecred > [email protected]" has unmet peer dependency "redux@^3.7.2 || ^4.0.3".
warning "sourcecred > ra-ui-materialui > [email protected]" has unmet peer dependency "immutable@^3.8.1 || ^4.0.0-rc.1".
warning "sourcecred > ra-ui-materialui > [email protected]" has incorrect peer dependency "history@^4.7.2".
warning "sourcecred > ra-ui-materialui > [email protected]" has unmet peer dependency "react-redux@^6.0.0 || ^7.1.0".
warning "sourcecred > ra-ui-materialui > [email protected]" has unmet peer dependency "redux@^3.6.0 || ^4.0.0".
warning "sourcecred > ra-ui-materialui > [email protected]" has unmet peer dependency "seamless-immutable@^7.1.3".
warning "sourcecred > web3modal > [email protected]" has unmet peer dependency "react-is@>= 16.8.0".
warning "sourcecred > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "sourcecred > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime > [email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "sourcecred > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime > [email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "sourcecred > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime > [email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "sourcecred > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-corejs2 > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.4.0-0".
warning "sourcecred > @walletconnect/web3-provider > web3-provider-engine > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-corejs2 > @babel/helper-define-polyfill-provider > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
[4/4] Building fresh packages...
[-/4] ⢀ waiting...
[-/4] ⠠ waiting...
[-/4] ⠠ waiting...
error /workspaces/template-instance/node_modules/better-sqlite3: Command failed.
Exit code: 1
Command: prebuild-install || npm run build-release
Arguments:
Directory: /workspaces/template-instance/node_modules/better-sqlite3
Output:
prebuild-install WARN install No prebuilt binaries found (target=19.6.0 runtime=node arch=x64 libc= platform=linux)

[email protected] build-release
node-gyp rebuild --release

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.10.4 found at "/home/codespace/.python/current/bin/python3"
gyp info spawn /home/codespace/.python/current/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/local/share/nvm/versions/node/v19.6.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/workspaces/template-instance/node_modules/better-sqlite3/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/share/nvm/versions/node/v19.6.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/codespace/.cache/node-gyp/19.6.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/codespace/.cache/node-gyp/19.6.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/share/nvm/versions/node/v19.6.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/codespace/.cache/node-gyp/19.6.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/workspaces/template-instance/node_modules/better-sqlite3',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/workspaces/template-instance/node_modules/better-sqlite3/build'
TOUCH b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
ACTION deps_sqlite3_gyp_locate_sqlite3_target_extract_sqlite3 b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
TOUCH Release/obj.target/deps/locate_sqlite3.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
rm -f Release/obj.target/deps/sqlite3.a Release/obj.target/deps/sqlite3.a.ar-file-list; mkdir -p dirname Release/obj.target/deps/sqlite3.a
ar crs Release/obj.target/deps/sqlite3.a @Release/obj.target/deps/sqlite3.a.ar-file-list
COPY Release/sqlite3.a
CXX(target) Release/obj.target/better_sqlite3/src/better_sqlite3.o
In file included from ./src/better_sqlite3.lzz:10,
from ../src/better_sqlite3.cpp:4:
/home/codespace/.cache/node-gyp/19.6.0/include/node/node.h:1013:51: warning: cast between incompatible function types from ‘void ()(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Context)’ to ‘node::addon_context_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Context, void*)’} [-Wcast-function-type]
1013 | (node::addon_context_register_func) (regfunc),
| ^
/home/codespace/.cache/node-gyp/19.6.0/include/node/node.h:1031:3: note: in expansion of macro ‘NODE_MODULE_CONTEXT_AWARE_X’
1031 | NODE_MODULE_CONTEXT_AWARE_X(modname, regfunc, NULL, 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/codespace/.cache/node-gyp/19.6.0/include/node/node.h:1062:3: note: in expansion of macro ‘NODE_MODULE_CONTEXT_AWARE’
1062 | NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./src/better_sqlite3.lzz:67:1: note: in expansion of macro ‘NODE_MODULE_INIT’
./src/util/macros.lzz: In function ‘void SetPrototypeGetter(v8::Isolate*, v8::Localv8::External, v8::Localv8::FunctionTemplate, const char*, v8::AccessorGetterCallback)’:
./src/util/macros.lzz:173:21: error: ‘v8::AccessorSignature’ has not been declared
./src/util/binder.lzz: In static member function ‘static bool Binder::IsPlainObject(v8::Isolate*, v8::Localv8::Object)’:
./src/util/binder.lzz:36:51: error: ‘class v8::Object’ has no member named ‘CreationContext’; did you mean ‘GetCreationContext’?
./src/util/data.lzz: In function ‘v8::Localv8::Value Data::GetValueJS(v8::Isolate*, sqlite3_stmt*, int, bool)’:
./src/util/data.lzz:75:92: warning: this statement may fall through [-Wimplicit-fallthrough=]
./src/util/data.lzz:75:197: note: here
./src/util/data.lzz: In function ‘v8::Localv8::Value Data::GetValueJS(v8::Isolate*, sqlite3_value*, bool)’:
./src/util/data.lzz:79:81: warning: this statement may fall through [-Wimplicit-fallthrough=]
./src/util/data.lzz:79:175: note: here
make: *** [better_sqlite3.target.mk:125: Release/obj.target/better_sqlite3/src/better_sqlite3.o] Error 1
rm b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
make: Leaving directory '/workspaces/template-instance/node_modules/better-sqlite3/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/share/nvm/versions/node/v19.6.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
gyp ERR! stack at ChildProcess.emit (node:events:512:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Linux 5.4.0-1103-azure
gyp ERR! command "/usr/local/share/nvm/versions/node/v19.6.0/bin/node" "/usr/local/share/nvm/versions/node/v19.6.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /workspaces/template-instance/node_modules/better-sqlite3
gyp ERR! node -v v19.6.0

Any ideas?

No GitHub token provided: set SOURCECRED_GITHUB_TOKEN

image
C:\WINDOWS\system32>yarn sourcecred graph
yarn run v1.22.19
$ C:\WINDOWS\system32\node_modules.bin\sourcecred graph
GO graph
GO reference detector for sourcecred/discourse
DONE reference detector for sourcecred/discourse: 17ms
GO reference detector for sourcecred/discord
DONE reference detector for sourcecred/discord: 1ms
GO reference detector for sourcecred/github
Error: No GitHub token provided: set SOURCECRED_GITHUB_TOKEN
at getTokenFromEnv (webpack:///./src/plugins/github/plugin.js?:24:439)
at GithubPlugin.referenceDetector (webpack:///./src/plugins/github/plugin.js?:25:964)
at graph (webpack:///./src/api/main/graph.js?:18:176)
at async graphCommand (webpack:///./src/cli/graph.js?:13:1375)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Create a CLI setup script

Create a script that prompts the user for the required configurations for an instance, including:

  • Plugins used (sourcecred.json)
  • Tokens for each plugin (.env)
  • Grain distributions (grain.json)

Additionally, it can call plugin-specific sub-scripts that build the plugin configs.

A bash script would be the obvious choice, though there are other options. It would be really nice to utilize the new Instance interface for read/write (sourcecred/sourcecred#2764).

CredRank doesn't run: need at least one interval

After connecting successfully yarn load Discord doing a yarn start or low-level yarn sourcecred go I get this:

$ /Users/marc/Projects/sourcecred/node_modules/.bin/sourcecred go
  GO   load
  GO   loading sourcecred/discord
  GO   sourcecred/discord: discord/Haags Samenspel
Discord Rate limit reached. Waiting for 1.418 seconds (until 2021-8-19 15:22:59)
  GO   sourcecred/discord: discord/Haags Samenspel/#welkom-en-regels
 DONE  sourcecred/discord: discord/Haags Samenspel/#welkom-en-regels: 276ms
  GO   sourcecred/discord: discord/Haags Samenspel/#aankondigingen
 DONE  sourcecred/discord: discord/Haags Samenspel/#aankondigingen: 229ms
  GO   sourcecred/discord: discord/Haags Samenspel/#bronnen
 DONE  sourcecred/discord: discord/Haags Samenspel/#bronnen: 148ms
  GO   sourcecred/discord: discord/Haags Samenspel/#verhalen
 DONE  sourcecred/discord: discord/Haags Samenspel/#verhalen: 186ms
  GO   sourcecred/discord: discord/Haags Samenspel/#ontmoetingen
 DONE  sourcecred/discord: discord/Haags Samenspel/#ontmoetingen: 143ms
  GO   sourcecred/discord: discord/Haags Samenspel/#bouwlust-vrederust
 DONE  sourcecred/discord: discord/Haags Samenspel/#bouwlust-vrederust: 142ms
  GO   sourcecred/discord: discord/Haags Samenspel/#mijn-buren
 DONE  sourcecred/discord: discord/Haags Samenspel/#mijn-buren: 204ms
  GO   sourcecred/discord: discord/Haags Samenspel/#wijkagenda
 DONE  sourcecred/discord: discord/Haags Samenspel/#wijkagenda: 149ms
 DONE  sourcecred/discord: discord/Haags Samenspel: 3205ms
 DONE  loading sourcecred/discord: 3404ms
 DONE  load: 3407ms
  GO   graph
  GO   reference detector for sourcecred/discord
 DONE  reference detector for sourcecred/discord: 1ms
  GO   generating graph for sourcecred/discord
 DONE  generating graph for sourcecred/discord: 5ms
  GO   writing files
 DONE  writing files: 7ms
 DONE  graph: 16ms
  GO   credrank
  GO   load data
File not found at path: config/weights.json. Defaulting.
File not found at path: config/pluginBudgets.json. Defaulting.
File not found at path: config/personalAttributions.json. Defaulting.
 DONE  load data: 4ms
  GO   run CredRank
Error: need at least one interval
    at Function.new (webpack:///./src/core/credrank/markovProcessGraph.js?:83:431)
    at credrank (webpack:///./src/core/credrank/compute.js?:22:849)
    at credrank (webpack:///./src/api/main/credrank.js?:21:1253)
    at credrankCommand (webpack:///./src/cli/credrank.js?:14:1220)
    at async goCommand (webpack:///./src/cli/go.js?:7:817)
error Command failed with exit code 1.```

Could have something to do with the config files `weights.json` etc., but not sure how to fill them. Or the setup of Github Actions?

Consider having only one yarn command

Right now, we alias the sourcecred commands into package.json, so that we have yarn score, yarn load, etc.
This has the side-effect that when we add or rename commands, we need to update the package.json. This is fine for updating one repo, but once dozens of people have forked the template, we won't have a way to propagate these changes upstream. So troubleshooting / giving tech support to users will be a pain, since they will not all have the same commands in scope.

Therefore, I think we should consider switching to a single yarn command -- yarn sc which is an alias for yarn sourcecred. Then users can write yarn sc load, yarn sc score, etc. It's only three extra characters, and it gives us the ability to upgrade everyone into consistent states just by changing the sourcecred command, without needing to try to encourage everyone to upgrade their package.json.

What do you think @HammadJ @topocount @wchargin?

"ENAMETOOLONG: name too long

Running yarn install results in

error https://registry.yarnpkg.com/sourcecred/-/sourcecred-0.9.3.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENAMETOOLONG: name too long, open '/home/el/.cache/yarn/v6/npm-sourcecred-0.9.3-102177228d72be3275df2e381f61516ff1483048-integrity/node_modules/sourcecred/src/plugins/wip-discord/snapshots/aHR0cHM6Ly9kaXNjb3JkYXBwLmNvbS9hcGkvY2hhbm5lbHMvNjc4Mzk0NDA2NTA3OTA1MTI5L21lc3NhZ2VzLzY3ODM5NDQzNjc1NzA5NDQxMC9yZWFjdGlvbnMvc291cmNlY3JlZDo2NzgzOTkzNjQ0MTg1MDI2Njk_YWZ0ZXI9MCZsaW1pdD01'"

Tried bumping to 0.10.0 and still fails.

Annotate Ledger in Github

The ledger is not particularly human readable, which makes it harder to audit PRs and commits for grain distributions, identity merges, etc. Github has Annotation functionality, though, and it would be nice if a CI or a Github Action automatically added human-readable annotations to PRs / branches.

Here is an Action that creates annotations from JSON: https://github.com/marketplace/actions/annotations-action
JSON could be generated pretty easily by a new CLI in sourcecred/sourcecred. Also, sourcecred/sourcecred#2719 would make this even easier.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.