Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update to spago@next #24

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

srghma
Copy link
Member

@srghma srghma commented Oct 12, 2024

but on my machine there are two errors

Running tests for package: chnglg-lib
Init command
  ✓︎ init - no args - files' content should match constants' content
  ✓︎ init - does not ovewrite pre-existing files
  ✓︎ init - force - ovewrites pre-existing files
  ✓︎ init - custom file paths - files' content should match constants' content
  ✓︎ init - custom file paths - does not overwrite pre-existing files
  ✓︎ init - custom file paths, force - overwrites pre-existing files

Cloning into 'test-repoUdAjWJ'...
Update command
  ✗ update - no args - produces expected content:

  Result did not exit normally.
Attempting to read changelog dir: CHANGELOG.d
# of entries found in changelog: 4
Entries found in changelog dir were:
CHANGELOG.d/README.md
CHANGELOG.d/breaking_3.md
CHANGELOG.d/fix_something with spaces.md
CHANGELOG.d/internal_something-internal.md
Processing entries for prefix: breaking
For file, 'CHANGELOG.d/breaking_3.md', got commits:
64eec30ac3786111d6d23d9038264e8363887ede,2023-09-18T11:43:15-05:00,Made breaking change (#3),4e7b40140ec145f3f997848e4aa6baf555954092
For file, 'CHANGELOG.d/breaking_3.md', got PR Numbers:(NonEmptyArray [3])
Git remotes are:
origin  ssh://[email protected]/JordanMartinez/purescript-up-changelog-test (fetch)
origin  ssh://[email protected]/JordanMartinez/purescript-up-changelog-test (push)
file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:530
                throw util.fromLeft(step);
                ^

Error: Found remote, but could not determine its repo.  While trying to parse, '        ssh://[email protected]/JordanMartinez/purescript-up-changelog-test (fetch)',  parser error was: (ParseError "Expected \"https://github.com/\"" (Position { column: 1, index: 0, line: 1 }))
    at Module.error (file:///home/srghma/projects/.contrib/chnglg/output/Effect.Exception/foreign.js:6:10)
    at Module.$$throw (file:///home/srghma/projects/.contrib/chnglg/output/Effect.Exception/index.js:16:45)
    at Module.die (file:///home/srghma/projects/.contrib/chnglg/output/UpChangelog.App/index.js:63:48)
    at file:///home/srghma/projects/.contrib/chnglg/output/UpChangelog.Command.Update/index.js:384:48
    at file:///home/srghma/projects/.contrib/chnglg/output/Control.Monad.Reader.Trans/index.js:117:34
    at run (file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:276:22)
    at file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:346:19
    at drain (file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:118:9)
    at Object.enqueue (file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:139:11)
    at file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:337:27

Node.js v22.8.0
  ✓︎ update - repo arg - produces expected content
  ✓︎ update - version via package.json - produces expected content
  ✓︎ update - explicit version - produces expected content
  ✓︎ update - proj.cabal version - produces expected content
  ✓︎ update - custom - produces expected content
  ✗ update - dry-run does not modify file content:

  Result did not exit normally.
Attempting to read changelog dir: CHANGELOG.d
# of entries found in changelog: 4
Entries found in changelog dir were:
CHANGELOG.d/README.md
CHANGELOG.d/breaking_3.md
CHANGELOG.d/fix_something with spaces.md
CHANGELOG.d/internal_something-internal.md
Processing entries for prefix: breaking
For file, 'CHANGELOG.d/breaking_3.md', got commits:
64eec30ac3786111d6d23d9038264e8363887ede,2023-09-18T11:43:15-05:00,Made breaking change (#3),4e7b40140ec145f3f997848e4aa6baf555954092
For file, 'CHANGELOG.d/breaking_3.md', got PR Numbers:(NonEmptyArray [3])
Sending GET request to: https://api.github.com/repos/JordanMartinez/purescript-up-changelog-test/pulls/3
Got response: 200 "OK"
Reading content of file entry: CHANGELOG.d/breaking_3.md
Processing entries for prefix: feature
Processing entries for prefix: fix
For file, 'CHANGELOG.d/fix_something with spaces.md', got commits:
4e7b40140ec145f3f997848e4aa6baf555954092,2023-09-18T11:42:17-05:00,Merge pull request #2 from JordanMartinez/made-fix-change,5a4ba32fba3a348a8c3679868a56308a1267600a 86a167134b80b05a369a56774aa9b661e1ead0b1
86a167134b80b05a369a56774aa9b661e1ead0b1,2023-09-18T11:41:25-05:00,Made fix change,5a4ba32fba3a348a8c3679868a56308a1267600a
For file, 'CHANGELOG.d/fix_something with spaces.md', got PR Numbers:(NonEmptyArray [2])
Sending GET request to: https://api.github.com/repos/JordanMartinez/purescript-up-changelog-test/pulls/2
Got response: 403 "rate limit exceeded"
file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:530
                throw util.fromLeft(step);
                ^

Error: Lookup PR author failed. 403 "rate limit exceeded"
    at Module.error (file:///home/srghma/projects/.contrib/chnglg/output/Effect.Exception/foreign.js:6:10)
    at Module.$$throw (file:///home/srghma/projects/.contrib/chnglg/output/Effect.Exception/index.js:16:45)
    at Module.die (file:///home/srghma/projects/.contrib/chnglg/output/UpChangelog.App/index.js:63:48)
    at file:///home/srghma/projects/.contrib/chnglg/output/UpChangelog.Command.Update/index.js:233:81
    at file:///home/srghma/projects/.contrib/chnglg/output/Control.Monad.Reader.Trans/index.js:117:34
    at run (file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:276:22)
    at file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:346:19
    at drain (file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:118:9)
    at Object.enqueue (file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:139:11)
    at file:///home/srghma/projects/.contrib/chnglg/output/Effect.Aff/foreign.js:337:27

Node.js v22.8.0

Summary
11/13 tests passed

ssh://[email protected]/JordanMartinez/purescript-up-changelog-test error probably bc https://github.com/srghma/dotfiles/blob/733f99dccc07018ed9b7ef9fb7b3e08b570ac43a/gitconfig#L52-L53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant