Skip to content

Commit 294f882

Browse files
authored
Merge pull request #53364 from AmberArcadia/amber-claude-fixes
Added extra info to CLAUDE.md, which was used to create a test for amazon-corretto-crypto-provider
2 parents b37e416 + 233b902 commit 294f882

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ tramp
2727
.\#*
2828

2929
**/.github-token
30+
**/.claude/settings.local.json
3031

3132
# QEMU images
3233
*.img

CLAUDE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ Try to reuse existing melange pipelines where possible.
5959

6060
When debugging failed builds, try cloning the source code from the melange file locally to a directory here to study the build system.
6161

62+
## Other General notes
63+
Follow the previously mentioned notes as a baseline, and then also consider these additional notes:
64+
- Certain packages are a bit weird, like Java and Python. Make sure to check existing examples, but especially note the following:
65+
- Use py3.x-supported-y packages whenever possible
66+
- Use a modern and supported JVM/JDK version (making sure to pick the right packages as well) and loading the environment variables properly
67+
- Avoid using obsolete package versions
68+
- It is worthwhile to search for similar packages to use as working examples over generating something entirely new.
69+
6270
## Ruby Package Guidelines
6371

6472
When working with Ruby packages:

amazon-corretto-crypto-provider.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ package:
66
The Amazon Corretto Crypto Provider (ACCP) is a collection of high-performance cryptographic implementations exposed via the standard JCA/JCE interfaces.
77
copyright:
88
- license: Apache-2.0
9+
dependencies:
10+
runtime:
11+
- openjdk-11-jre
912

1013
environment:
1114
contents:
@@ -38,6 +41,15 @@ pipeline:
3841
mkdir -p ${{targets.destdir}}/usr/share/java/amazon-corretto-crypto-provider
3942
mv build/lib/AmazonCorrettoCryptoProvider.jar ${{targets.destdir}}/usr/share/java/amazon-corretto-crypto-provider/AmazonCorrettoCryptoProvider.jar
4043
44+
test:
45+
environment:
46+
environment:
47+
JAVA_HOME: /usr/lib/jvm/java-11-openjdk
48+
pipeline:
49+
- name: Verify JAR is not malformed
50+
runs: |
51+
unzip -l /usr/share/java/amazon-corretto-crypto-provider/AmazonCorrettoCryptoProvider.jar | grep AmazonCorrettoCryptoProvider.class
52+
4153
update:
4254
enabled: true
4355
github:

0 commit comments

Comments
 (0)