Skip to content

Ruby: update dependencies#10668

Merged
aibaars merged 3 commits into
github:mainfrom
aibaars:ruby-deps
Nov 1, 2022
Merged

Ruby: update dependencies#10668
aibaars merged 3 commits into
github:mainfrom
aibaars:ruby-deps

Conversation

@aibaars
Copy link
Copy Markdown
Contributor

@aibaars aibaars commented Oct 4, 2022

Update the lock files to include the codeql/ssa library and replace ad-hoc pack create command with a proper codeql pack install command now the ssa library has been published.

@aibaars aibaars requested a review from a team as a code owner October 4, 2022 08:07
@github-actions github-actions Bot added the Ruby label Oct 4, 2022
Comment thread .github/workflows/ruby-build.yml Outdated
- name: Build Query Pack
run: |
codeql pack create ../shared/ssa --output target/packs
codeql pack install ql/lib
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this still build the pack from the repo, or fetch it from the registry?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it fetches it from the registry.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That doesn't work then. We do not guarantee, that the code in main is compatible with any released shared pack; only that it is compatible with the version of the pack at main as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok. In that case we should remove the codeql pack install ql/src call too and use the suite-helpers from ../misc

@erik-krogh erik-krogh requested a review from a team as a code owner November 1, 2022 08:17
@github-actions github-actions Bot added the Go label Nov 1, 2022
erik-krogh
erik-krogh previously approved these changes Nov 1, 2022
Copy link
Copy Markdown
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - except for the lock files.
There is no need for explicit dependency versions in the lock files, as all the dependencies are present locally.
So I removed those and pushed that to this PR.

Ruby and Go were the only languages that had any explicit dependencies in their lockfiles, which I suppose are leftovers from the days of living in a separate repo.

/cc @aeisenberg: Am I correct in assuming that these lock files don't need anything in dependencies:?

Comment thread .github/workflows/ruby-build.yml Outdated
erik-krogh added a commit to erik-krogh/ql that referenced this pull request Nov 1, 2022
@aibaars aibaars merged commit aba87a1 into github:main Nov 1, 2022
@aeisenberg
Copy link
Copy Markdown
Contributor

/cc @aeisenberg: Am I correct in assuming that these lock files don't need anything in dependencies:?

That's right!

erik-krogh added a commit to erik-krogh/ql that referenced this pull request Nov 7, 2022
erik-krogh added a commit to erik-krogh/ql that referenced this pull request Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants