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

Remove unused jsm.go dependency and configureNATSCLI logic. #699

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

aricart
Copy link
Member

@aricart aricart commented Jan 9, 2025

This commit cleans up the code by removing the unused jsm.go module and the configureNATSCLI function, which relied on it. The change reduces unnecessary dependencies and simplifies the LoadParams logic, improving maintainability.

This commit cleans up the code by removing the unused `jsm.go` module and the `configureNATSCLI` function, which relied on it. The change reduces unnecessary dependencies and simplifies the `LoadParams` logic, improving maintainability.

Signed-off-by: Alberto Ricart <[email protected]>
@aricart
Copy link
Member Author

aricart commented Jan 9, 2025

The removed code creates issues for nats cli. Any reasons why it was added there?

* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

Choose a reason for hiding this comment

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

ugh C comments :)

Copy link
Member Author

Choose a reason for hiding this comment

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

ugh IDEA - let me do a PR to change all of them.

@@ -355,33 +354,6 @@ func (p *LoadParams) configureNSCEnv() error {
return nil
}

func (p *LoadParams) configureNATSCLI() error {

Choose a reason for hiding this comment

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

for background, I want this gone because it's causing some weird dependency issues with new nats auth behaviours - so @wallyqs what was this for and I can add similar functionality to nats auth?

Also we cant call Select here to change peoples selected contexts its just rude and unsafe, so for now just remove the whole lot

Copy link

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

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

LGTM

@aricart aricart merged commit eeda721 into main Jan 10, 2025
11 checks passed
@aricart aricart deleted the exorcise-jsm branch January 10, 2025 16:53
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