Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ updates:
interval: 'weekly'
allow:
# Starting slow by only checking our own packages for updates.
- dependency-name: '@metaplex-foundation/*'
- dependency-name: '@metaplex-foundation/*'
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Re-add the trailing newline for lint & POSIX compliance

YAMLlint is erroring (new-line-at-end-of-file). A final newline is also a longstanding POSIX convention that a lot of tooling assumes.

   - dependency-name: '@metaplex-foundation/*'
+

Verify CI passes after restoring the newline.


🏁 Script executed:

#!/bin/bash
# Check if .github/dependabot.yml ends with a trailing newline
set -e

file_path=".github/dependabot.yml"

# Exit if file not found
if [ ! -f "$file_path" ]; then
  echo "ERROR: $file_path not found"
  exit 1
fi

# Get the last byte of the file in hex
last_byte=$(tail -c1 "$file_path" | od -An -t x1 | tr -d ' [:space:]')

echo "Last byte (hex): $last_byte"

if [ "$last_byte" = "0a" ]; then
  echo "Result: file ends with a newline"
else
  echo "Result: file is missing a trailing newline"
fi

Length of output: 421


🏁 Script executed:

#!/usr/bin/env bash
# Verify trailing newline in .github/dependabot.yml using Python
file=".github/dependabot.yml"
if [ ! -f "$file" ]; then
  echo "ERROR: $file not found"
  exit 1
fi

python3 - "$file" << 'EOF'
import sys
path = sys.argv[1]
try:
    with open(path, 'rb') as f:
        f.seek(0, 2)
        if f.tell() == 0:
            print("missing newline")
            sys.exit(0)
        f.seek(-1, 2)
        last = f.read(1)
        print("newline" if last == b'\n' else "missing newline")
except Exception as e:
    print(f"ERROR: {e}")
    sys.exit(1)
EOF

Length of output: 120


Add missing trailing newline to .github/dependabot.yml

The file currently ends without a final newline, causing YAMLlint errors (new-line-at-end-of-file) and violating POSIX conventions. Please restore the trailing newline:

• File: .github/dependabot.yml
• Verified missing final newline via script

--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ Lines 1–end
-      - dependency-name: '@metaplex-foundation/*'
+      - dependency-name: '@metaplex-foundation/*'
+  ← add a single newline here

After adding, confirm that CI passes.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- dependency-name: '@metaplex-foundation/*'
- dependency-name: '@metaplex-foundation/*'
🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 12-12: no new line character at the end of file

(new-line-at-end-of-file)

🤖 Prompt for AI Agents
In .github/dependabot.yml at line 12, the file is missing a trailing newline at
the end, which causes YAMLlint errors and violates POSIX conventions. Add a
single newline character at the end of the file after line 12 to fix this issue,
then verify that the CI passes successfully.