Skip to content

[misc] Separate shared code dependencies #4288

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

Merged
merged 6 commits into from
Aug 5, 2025
Merged

Conversation

lixmal
Copy link
Collaborator

@lixmal lixmal commented Aug 5, 2025

Describe your changes

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

@Copilot Copilot AI review requested due to automatic review settings August 5, 2025 14:19
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR restructures the codebase to separate shared code dependencies by moving common packages from server-specific locations to a shared/ directory. This separation ensures license compliance by preventing client and shared code from importing packages that will change license.

Key changes:

  • Move relay, management HTTP API, status, and context packages to shared/ directory
  • Update all import paths to reference the new shared locations
  • Add GitHub workflow to prevent future problematic license dependencies

Reviewed Changes

Copilot reviewed 122 out of 146 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
shared/relay/constants.go Introduces WebSocket URL path constant for shared relay usage
shared/relay/client/* Updates relay client imports to use shared message and health check packages
shared/management/operations/operation.go Creates shared operation type definition
shared/management/status/error.go Updates import to use shared operations package
shared/management/http/util/util.go Updates import to use shared status package
shared/management/client/rest/* Updates REST client imports to use shared HTTP API packages
shared/context/keys.go Introduces shared context key constants
route/route.go Removes status package dependency, uses standard fmt.Errorf
relay/server/* Updates relay server imports to use shared packages
management/server/* Updates management server imports to use shared packages
management/server/context/keys.go Updates to reference shared context constants
formatter/hook/hook.go Updates import to use shared context package
client/internal/profilemanager/config.go Removes outdated comment about hardcoded management port
.github/workflows/check-license-dependencies.yml Adds workflow to prevent problematic license dependencies

Copy link

sonarqubecloud bot commented Aug 5, 2025

@mlsmaycon mlsmaycon merged commit abd152e into main Aug 5, 2025
37 checks passed
@mlsmaycon mlsmaycon deleted the separate-license-deps branch August 5, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants