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

Change license/gen to skip symlink #2290

Merged
merged 3 commits into from Jan 10, 2024
Merged

Conversation

ykadowak
Copy link
Contributor

@ykadowak ykadowak commented Jan 10, 2024

Description:

This PR adds a logic to license/gen to skip symlink. This is required to avoid symlink files like values.yaml in vald-readreplica to become normal file on make format.

Related Issue:

Versions:

  • Go Version: 1.21.5
  • Docker Version: 20.10.8
  • Kubernetes Version: v1.28.4
  • NGT Version: 2.1.6

Checklist:

Special notes for your reviewer:

…o become normal file.

This commit adds a new function called `isSymlink` to check if a given path is a symbolic link. It also includes a corresponding test in the `main_test.go` file. This functionality will be useful for handling symbolic links in the codebase.
@github-actions github-actions bot added the team/set SET team label Jan 10, 2024
@vdaas-ci
Copy link
Collaborator

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

@ykadowak ykadowak changed the title Add isSymlink function and test to gen license to avoid for symlink t… Change license/gen to skip symlink Jan 10, 2024
Copy link

cloudflare-pages bot commented Jan 10, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3b53c6c
Status: ✅  Deploy successful!
Preview URL: https://dbdcb710.vald.pages.dev
Branch Preview URL: https://fix-license-ignore-symlink.vald.pages.dev

View logs

@ykadowak ykadowak marked this pull request as ready for review January 10, 2024 06:43
@ykadowak ykadowak requested review from a team, kmrmt and hlts2 and removed request for a team January 10, 2024 06:44
Copy link
Contributor

@hlts2 hlts2 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

4 participants