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

SqlPackage.deployDb exception without timeout #2567

Closed
jhursey opened this issue Feb 23, 2021 · 2 comments
Closed

SqlPackage.deployDb exception without timeout #2567

jhursey opened this issue Feb 23, 2021 · 2 comments

Comments

@jhursey
Copy link

jhursey commented Feb 23, 2021

Description

When running SqlPackage.deployDb without a timeout argument an exception is thrown.

Repro steps

Run the example found at https://fake.build/sql-sqlpackage.html.

Expected behavior

Should either warn the user of a missing argument or provide a valid default.

Actual behavior

Throws a NullReferenceException

Known workarounds

Provide a timeout argument

Related information

fake --version
FAKE 5 - F# Make (5.10.1)

cat .config/dotnet-tools.json
{
  "version": 1,
  "isRoot": true,
  "tools": {
    "fake-cli": {
      "version": "5.20.3",
      "commands": [
        "fake"
      ]
    }
  }
}

I am 99% sure the error is in src/app/Fake.Sql.SqlPackage/Sql.SqlPackage.fs line 121.

| Timeout when String.isNullOrEmpty(args.Profile) && args.Timeout.IsNone -> sprintf "/p:CommandTimeout=%d" args.Timeout.Value

We check that args.Timeout.IsNone but then call args.Timeout.Value anyway.

@github-actions
Copy link
Contributor

Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project!

@yazeedobaid
Copy link
Collaborator

@jhursey jhursey closed this as completed Apr 5, 2021
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

No branches or pull requests

2 participants