Skip to content

RTECO-945: Add Apk to ProjectType enum for jf setup apk support#1584

Open
naveenku-jfrog wants to merge 1 commit into
masterfrom
RTECO-alpine
Open

RTECO-945: Add Apk to ProjectType enum for jf setup apk support#1584
naveenku-jfrog wants to merge 1 commit into
masterfrom
RTECO-alpine

Conversation

@naveenku-jfrog

Copy link
Copy Markdown
Contributor

Add Apk ProjectType and "apk" string to ProjectTypes slice so that the unified jf setup command can route to Alpine APK configuration.

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the master branch.
  • I used gofmt for formatting the code before submitting the pull request.

RTECO-945: Add apk as a supported project type
Summary
This PR adds apk (Alpine Package Manager) to the ProjectType enum in jfrog-cli-core, enabling the unified jf setup command to recognize and route Alpine APK configuration.

Change: common/project/projectconfig.go

Added Apk to the ProjectType enum
Added "apk" to the ProjectTypes string slice
Why
The jf setup command uses ProjectType to determine which package manager setup flow to invoke. Without this entry, jf setup apk cannot be dispatched to the Alpine configuration handler in jfrog-cli-artifactory.

This is a prerequisite for:

jfrog-cli-artifactory#496 — Alpine APK command support (jf apk add, jf apk upload, jf setup apk)
jfrog-cli#3561 — CLI wiring for jf apk commands
Testing
No standalone tests needed — this is a data-only enum extension. Integration is covered by the Alpine e2e tests in jfrog-cli.

Add Apk ProjectType and "apk" string to ProjectTypes slice so that
the unified jf setup command can route to Alpine APK configuration.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


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.

1 participant