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

bug(config): additional profiles not view in forge config and not work with forge build #8846

Closed
2 tasks done
markgenuine opened this issue Sep 11, 2024 · 1 comment
Closed
2 tasks done
Labels
A-config Area: config T-bug Type: bug T-to-investigate Type: to investigate
Milestone

Comments

@markgenuine
Copy link

markgenuine commented Sep 11, 2024

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (be451fb 2024-09-11T00:20:08.082212000Z)

What command(s) is the bug in?

forge build and forge config

Operating System

macOS (Apple Silicon)

Describe the bug

I have problem with:

  1. forge config. In toml file i have 2 profile.default and profile.0820 but if call command i don't see it profile.
  2. if i do FOUNDRY_PROFILE=0820 forge install <package> it's work. But if i do FOUNDRY_PROFILE=0820 forge build i get error because i make repos with several version sol. And FOUNDRY_PROFILE=0820 on execute command forge build not picks up.
@markgenuine markgenuine added T-bug Type: bug T-needs-triage Type: this issue needs to be labelled labels Sep 11, 2024
@zerosnacks zerosnacks added A-config Area: config and removed T-needs-triage Type: this issue needs to be labelled labels Sep 12, 2024
@zerosnacks zerosnacks changed the title Additional profiles not view in config and not work with forge build bug(config): additional profiles not view in forge config and not work with forge build Sep 12, 2024
@zerosnacks zerosnacks added the T-to-investigate Type: to investigate label Sep 12, 2024
@zerosnacks zerosnacks added this to the v1.0.0 milestone Sep 12, 2024
@zerosnacks
Copy link
Member

Hi @markgenuine thanks for your flag

Running forge install with custom profiles is not supported

Make sure auto_detect_solc is set to true to enable multi-compilation

https://book.getfoundry.sh/reference/config/solidity-compiler#auto_detect_solc

@zerosnacks zerosnacks closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config Area: config T-bug Type: bug T-to-investigate Type: to investigate
Projects
None yet
Development

No branches or pull requests

2 participants